Skip to content

Commit

Permalink
Latex printer: Table stretch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Toliak committed Jun 22, 2023
1 parent bef43eb commit 5a5765f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions printers/latex/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion printers/latex/src/printer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ ${
${info.content}
\\end{longtable}
\\fontsize{\\defaultfontsize}{\\defaultfontsize}\\selectfont\\setstretch{1.5}
\\fontsize{\\defaultfontsize}{\\defaultfontsize}\\selectfont\\setstretch{\\getstretch}
`;
}
Expand Down
14 changes: 7 additions & 7 deletions printers/latex/test/printer/__snapshots__/printer.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ See application В.
\\\\section{\\\\uppercase{Приложение Б}}
\\\\sectionbutitiscentered{Large scheme}
\\\\begin{center}
\\\\includegraphics[height=13.8cm]{./assets/img/circuit.png}
\\\\end{center}
Expand Down Expand Up @@ -277,7 +277,7 @@ Static number & 50\\\\\\\\ \\\\hline
Random number & \\\\showcaserandomnumber \\\\\\\\ \\\\hline
\\\\end{longtable}
\\\\fontsize{\\\\defaultfontsize}{\\\\defaultfontsize}\\\\selectfont\\\\setstretch{1.5}
\\\\fontsize{\\\\defaultfontsize}{\\\\defaultfontsize}\\\\selectfont\\\\setstretch{\\\\getstretch}
"
`;
Expand Down Expand Up @@ -377,7 +377,7 @@ exports[`latex picture after table (#52) Picture right after the table 2`] = `
Static number & 50\\\\\\\\ \\\\hline
\\\\end{longtable}
\\\\fontsize{\\\\defaultfontsize}{\\\\defaultfontsize}\\\\selectfont\\\\setstretch{1.5}
\\\\fontsize{\\\\defaultfontsize}{\\\\defaultfontsize}\\\\selectfont\\\\setstretch{\\\\getstretch}
\\\\setlength{\\\\intextsep}{3em}
\\\\setlength{\\\\belowcaptionskip}{-4ex}
Expand Down Expand Up @@ -457,7 +457,7 @@ exports[`latex picture after table (#52) Table + text + picture 2`] = `
Static number & 50\\\\\\\\ \\\\hline
\\\\end{longtable}
\\\\fontsize{\\\\defaultfontsize}{\\\\defaultfontsize}\\\\selectfont\\\\setstretch{1.5}
\\\\fontsize{\\\\defaultfontsize}{\\\\defaultfontsize}\\\\selectfont\\\\setstretch{\\\\getstretch}
Sample text line
Expand Down Expand Up @@ -527,7 +527,7 @@ exports[`simple md to latex docs printer Header + Formula 1`] = `
\\\\begin{align*}
\\\\displaystyle
a = b + c
\\\\end{align*}
\\\\end{align*}
"
`;
Expand Down Expand Up @@ -658,7 +658,7 @@ exports[`simple md to latex docs printer ListItem + MathLatex must have 2 line b
\\\\begin{align*}
\\\\displaystyle
Some text here
\\\\end{align*}
\\\\end{align*}
"
`;
Expand Down Expand Up @@ -723,7 +723,7 @@ exports[`simple md to latex docs printer Table 1`] = `
t & r & e & z\\\\\\\\ \\\\hline
\\\\end{longtable}
\\\\fontsize{\\\\defaultfontsize}{\\\\defaultfontsize}\\\\selectfont\\\\setstretch{1.5}
\\\\fontsize{\\\\defaultfontsize}{\\\\defaultfontsize}\\\\selectfont\\\\setstretch{\\\\getstretch}
"
`;
Expand Down

0 comments on commit 5a5765f

Please sign in to comment.