Skip to content

Commit

Permalink
Merge pull request #129 from matze-dd/Issue-124
Browse files Browse the repository at this point in the history
Closes #124
  • Loading branch information
matze-dd authored Nov 21, 2020
2 parents 8a931e5 + 0357ce8 commit e68f307
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
6 changes: 4 additions & 2 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ Work in progress
- LaTeX macros / environments
- package babel: added environments otherlanguage\(\*\)
(issue [#114](../../issues/114))
- builtins: fixed \\usepackage, now accepts multiple package names
(issue [#121](../../issues/121))
- builtins
- fixed \\usepackage, now accepts multiple package names
(issue [#121](../../issues/121))
- added macros \\LaTeX, \\TeX (issue [#124](../../issues/124))
- yalafi.shell
- added support for multi-language documents (issue [#98](../../issues/98))
- new options --multi-language, --ml-continue-threshold, --ml-rule-threshold,
Expand Down
2 changes: 2 additions & 0 deletions list-of-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ tests: [tests/test\_packages/test\_latex\_builtins.py](tests/test_packages/test_
\\L,
\\l,
\\label,
\\LaTeX,
\\LTadd,
\\LTalter,
\\LTinput (executes code in file),
Expand All @@ -93,6 +94,7 @@ tests: [tests/test\_packages/test\_latex\_builtins.py](tests/test_packages/test_
\\ss,
\\subsection,
\\subsubsection,
\\TeX,
\\textasciicircum,
\\textasciitilde,
\\textbackslash,
Expand Down
2 changes: 2 additions & 0 deletions tests/test_packages/test_latex_builtins.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def get_plain(latex):
(r'\L', 'Ł'),
(r'\l', 'ł'),
(r'A\label{l}B', 'AB'),
(r'A\LaTeX B', 'ALaTeXB'),
(r'A\newline B', 'A B'),
(r'\O', 'Ø'),
(r'\o', 'ø'),
Expand All @@ -44,6 +45,7 @@ def get_plain(latex):
(r'\ref{l}', '0'),
(r'\S', '§'),
(r'\ss', 'ß'),
(r'A\TeX B', 'ATeXB'),
(r'\textasciicircum', '^'),
(r'\textasciitilde', '~'),
(r'\textbackslash', '\\'),
Expand Down
2 changes: 2 additions & 0 deletions yalafi/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def init_macros(self):
\newcommand{\L}{Ł}
\newcommand{\l}{ł}
\newcommand{\label}[1]{}
\newcommand{\LaTeX}{LaTeX}
\newcommand{\newline}{ }
\newcommand{\O}{Ø}
\newcommand{\o}{ø}
Expand All @@ -65,6 +66,7 @@ def init_macros(self):
\newcommand{\ref}[1]{0}
\newcommand{\S}{§}
\newcommand{\ss}{ß}
\newcommand{\TeX}{TeX}
\newcommand{\textasciicircum}{\verb?^?} % \^ is accent
\newcommand{\textasciitilde}{\verb?~?} % \~ is accent
\newcommand{\textbackslash}{\verb?\?} % \\ is line break
Expand Down

0 comments on commit e68f307

Please sign in to comment.