Skip to content

Commit

Permalink
clean up some text size issues
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisfenner committed Sep 10, 2024
1 parent 661c04c commit 791b55c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
8 changes: 4 additions & 4 deletions guide.tcg
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,8 @@ This is the only informative text block in this document.

These blocks can contain multiple paragraphs.

These blocks can even contain tables! However, be wary of providing tables that are
too large in an Informative Text block.
These blocks can even contain tables! However, be wary of providing tables that
are too large in an Informative Text block.

| Document Type | Informative Blocks |
| ----------------- | ---------------------- |
Expand All @@ -500,8 +500,8 @@ This is the only informative text block in this document.

These blocks can contain multiple paragraphs.

These blocks can even contain tables! However, be wary of providing tables that are
too large in an Informative Text block.
These blocks can even contain tables! However, be wary of providing tables that
are too large in an Informative Text block.

| Document Type | Informative Blocks |
| ----------------- | ---------------------- |
Expand Down
29 changes: 9 additions & 20 deletions template/tcg.tex
Original file line number Diff line number Diff line change
Expand Up @@ -161,19 +161,14 @@
% }
% \makeatother

$if(highlighting-macros)$
$highlighting-macros$

% Workaround/bugfix from jannick0.
% See https://github.com/jgm/pandoc/issues/4302#issuecomment-360669013)
% or https://github.com/Wandmalfarbe/pandoc-latex-template/issues/2
%
% Redefine the verbatim environment 'Highlighting' to break long lines (with
% the help of fvextra). Redefinition is necessary because it is unlikely that
% pandoc includes fvextra in the default template.
\usepackage{fvextra}
\DefineVerbatimEnvironment{Highlighting}{Verbatim}{breaklines,fontsize=$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$,commandchars=\\\{\}}
$endif$
% Make all verbatim environments use \small font.
\usepackage{etoolbox}
\makeatletter
\patchcmd{\@verbatim}
{\verbatim@font}
{\verbatim@font\small}
{}{}
\makeatother

% Left-justify the document.
\usepackage[document]{ragged2e}
Expand Down Expand Up @@ -410,16 +405,10 @@

\lstdefinestyle{eisvogel_listing_style}{
language = java,
$if(listings-disable-line-numbers)$
xleftmargin = 0.6em,
framexleftmargin = 0.4em,
$else$
numbers = left,
xleftmargin = 2.7em,
framexleftmargin = 2.5em,
$endif$
backgroundcolor = \color{listing-background},
basicstyle = \color{listing-text-color}\linespread{1.0}$if(code-block-font-size)$$code-block-font-size$$else$\small$endif$\ttfamily{},
basicstyle = \color{listing-text-color}\linespread{1.0}\small\ttfamily{},
breaklines = true,
frame = single,
framesep = 0.19em,
Expand Down

0 comments on commit 791b55c

Please sign in to comment.