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