mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-19 22:37:51 +00:00
Fixed #2: Long lines in code blocks wrap automatically.
This commit is contained in:
parent
a73fcc26c5
commit
b33b1ab395
11
eisvogel.tex
11
eisvogel.tex
@ -311,6 +311,17 @@ $if(lhs)$
|
||||
$endif$
|
||||
$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,commandchars=\\\{\}}
|
||||
|
||||
$endif$
|
||||
$if(tables)$
|
||||
\usepackage{longtable,booktabs}
|
||||
|
@ -9,23 +9,21 @@ lang: "en"
|
||||
|
||||
# Vinaque sanguine metuenti cuiquam Alcyone fixus
|
||||
|
||||
## Aesculeae domus vincemur et Veneris adsuetus lapsum
|
||||
|
||||
Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque ab
|
||||
esse, obstat gravitate.
|
||||
Lorem markdownum Letoia, et alios: figurae flectentem annis aliquid Peneosque
|
||||
abesse obstat.
|
||||
|
||||
```java
|
||||
public class Example implements LoremIpsum {
|
||||
public static void main(String[] args) {
|
||||
if(args.length < 2) {
|
||||
System.out.println("Lorem ipsum dolor sit amet");
|
||||
public static void map(String[] sortedLeft, Long[] sortedRight, int splitIndex) {
|
||||
if(sortedLeft == null || sortedRight == null) {
|
||||
System.err.println("Lorem ipsum dolor sit amet");
|
||||
}
|
||||
} // Obscura atque coniuge, per de coniunx
|
||||
}
|
||||
```
|
||||
|
||||
Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur. Obscura atque coniuge, per de coniunx, sibi medias
|
||||
commentaque virgine anima tamen comitemque petis, sed.
|
||||
Porrigitur et Pallas nuper longusque cratere habuisse sepulcro pectore fertur
|
||||
obscura atque coniuge.
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
@ -40,14 +38,12 @@ commentaque virgine anima tamen comitemque petis, sed.
|
||||
</html>
|
||||
```
|
||||
|
||||
Vertitur iura tum nepotis causa; motus. Diva virtus! Acrota
|
||||
destruitis vos iubet quo et classis excessere Scyrumve spiro subitusque mente
|
||||
Pirithoi abstulit, lapides.
|
||||
Vertitur iura tum nepotis causa; motus. Diva virtus! Acrota destruitis vos
|
||||
iubet quo et classis excessere.
|
||||
|
||||
```sql
|
||||
CREATE TYPE person_t AS (
|
||||
firstName VARCHAR(50) NOT NULL,
|
||||
lastName VARCHAR(50) NOT NULL
|
||||
);
|
||||
|
||||
CREATE Or REPLACE FUNCTION getFormattedName(person) RETURNS text AS
|
||||
|
Loading…
Reference in New Issue
Block a user