-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
198 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- repo: https://github.com/cmhughes/latexindent.pl | ||
rev: V3.24 | ||
rev: V3.24.1 | ||
hooks: | ||
- id: latexindent-conda | ||
args: [-s] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- repo: https://github.com/cmhughes/latexindent.pl | ||
rev: V3.24 | ||
rev: V3.24.1 | ||
hooks: | ||
- id: latexindent | ||
args: [-s] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- repo: https://github.com/cmhughes/latexindent.pl | ||
rev: V3.24 | ||
rev: V3.24.1 | ||
hooks: | ||
- id: latexindent | ||
args: [-l, -m, -s, -w] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
- repo: https://github.com/cmhughes/latexindent.pl | ||
rev: V3.24 | ||
rev: V3.24.1 | ||
hooks: | ||
- id: latexindent-docker | ||
args: [-s] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
\documentclass{ctexrep}%Chinese report | ||
\usepackage{tabularray}%tabular | ||
|
||
\begin{document} | ||
\begin{tblr}[long, | ||
label= {market_fuyanshan} | ||
]{ | ||
cells = {c,m}, | ||
hline{1-2,5}= {-}{1pt}, | ||
hline{3-4} = {-}{}, | ||
vlines, | ||
row{1} = {cmd=\bfseries}, | ||
} | ||
XXX & YYY & ZZZ \\ | ||
AAA & DDD & GGG \\ | ||
BBB & EEE & HHH \\ | ||
CCC & FFF & III | ||
\end{tblr} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
\documentclass{ctexrep}%Chinese report | ||
\usepackage{tabularray}%tabular | ||
|
||
\begin{document} | ||
\begin{tblr}[long, | ||
label= {market_fuyanshan} | ||
]{ | ||
cells = {c,m}, | ||
hline{1-2,5}= {-}{1pt}, | ||
hline{3-4} = {-}{}, | ||
vlines, | ||
row{1} = {cmd=\bfseries}, | ||
} | ||
XXX & YYY & ZZZ \\ | ||
AAA & DDD & GGG \\ | ||
BBB & EEE & HHH \\ | ||
CCC & FFF & III | ||
\end{tblr} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
fineTuning: | ||
keyEqualsValuesBracesBrackets: | ||
name: |- | ||
(?x) | ||
[a-zA-Z@\*0-9_\/.:\#-]+ | ||
(?: | ||
[a-zA-Z@\*0-9_\/.\h:\#-] | ||
\{ | ||
[a-zA-Z@\*0-9_\/.\h:\#-,]+? | ||
\} | ||
)*? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
\documentclass{ctexrep}%Chinese report | ||
\usepackage{tabularray}%tabular | ||
|
||
\begin{document} | ||
\begin{tblr}{ | ||
cells={c,m}, | ||
hlines, | ||
vlines, | ||
} | ||
AAAAAAA & BBBBBBB \\ | ||
c & {f \\g} \\ %multirows | ||
d & h \\ | ||
e & {i \\j} %multirows | ||
\end{tblr} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
\documentclass{ctexrep}%Chinese report | ||
\usepackage{tabularray}%tabular | ||
|
||
\begin{document} | ||
\begin{tblr}{ | ||
cells={c,m}, | ||
hlines, | ||
vlines, | ||
} | ||
AAAAAAA & BBBBBBB \\ | ||
c & {f \\g} \\ %multirows | ||
d & h \\ | ||
e & {i \\j} %multirows | ||
\end{tblr} | ||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
\paragraph{latexindent.pl} | ||
latexindent.pl is a Perl script that indents .tex (and other) files according to an indentation scheme that the user can modify to suit their taste. | ||
Environments, including those with alignment delimiters (such as tabular), and commands, including those that can split braces and brackets across lines, are usually handled correctly by the script. | ||
Options for verbatim-like environments and commands, together with indentation after headings (such as chapter, section, etc) are also available. | ||
The script also has the ability to modify line breaks, and to add comment symbols and blank lines; | ||
furthermore, it permits string or regex-based substitutions. | ||
All user options are customisable via the switches and the YAML interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
\paragraph{latexindent.pl} | ||
latexindent.pl is a Perl script that indents .tex (and other) files according to an indentation | ||
scheme that the user can modify to suit their taste. Environments, including those with alignment | ||
delimiters (such as tabular), and commands, including those that can split braces and | ||
brackets across lines, are usually handled correctly by the script. Options for verbatim-like environments | ||
and commands, together with indentation after headings (such as chapter, section, | ||
etc) are also available. The script also has the ability to modify line breaks, and to add comment | ||
symbols and blank lines; furthermore, it permits string or regex-based substitutions. All user | ||
options are customisable via the switches and the YAML interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
modifyLineBreaks: | ||
oneSentencePerLine: | ||
manipulateSentences: 1 | ||
removeSentenceLineBreaks: 1 | ||
textWrapSentences: 1 | ||
sentencesFollow: | ||
par: 1 | ||
blankLine: 1 | ||
fullStop: 1 | ||
exclamationMark: 1 | ||
questionMark: 1 | ||
rightBrace: 1 | ||
commentOnPreviousLine: 1 | ||
other: ; | ||
sentencesBeginWith: | ||
A-Z: 1 | ||
a-z: 1 | ||
sentencesDoNOTcontain: | ||
other: \} # regex | ||
sentencesEndWith: | ||
basicFullStop: 0 | ||
betterFullStop: 1 | ||
exclamationMark: 1 | ||
questionMark: 1 | ||
other: ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
I've a LaTeX source. | ||
I'm ready | ||
to strip its comments. | ||
|
||
So I hope there are | ||
100\% auto | ||
ways to get this done. | ||
|
||
|
||
|
||
\begin{verbatim} | ||
next two lines should not be lost | ||
% don't lose this line | ||
% this line should stay too | ||
\end{verbatim} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
I've a LaTeX source. | ||
I'm ready %for submission | ||
%But first I would like | ||
to strip its comments. | ||
|
||
So I hope there are | ||
100\% auto | ||
ways to get this done. | ||
|
||
\begin{comment} | ||
Because there are subtle ways to mess it up. | ||
\end{comment} | ||
|
||
\begin{verbatim} | ||
next two lines should not be lost | ||
% don't lose this line | ||
% this line should stay too | ||
\end{verbatim} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
replacements: | ||
- | ||
substitution: |- | ||
s/^\h*(?<!\\)%.*\R//mg | ||
- | ||
substitution: |- | ||
s/(?<!\\)%.*$//mg | ||
- | ||
substitution: |- | ||
s/\\begin\{comment\}.*?\\end\{comment\}//sg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters