Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Initial full example document for German authors #63

Merged
merged 5 commits into from
Nov 8, 2017

Conversation

koppor
Copy link
Member

@koppor koppor commented Aug 7, 2017

Based on the old template, I generated lni-paper-example.de.tex.

From my side, there are two things left:

  • investigate difference in rendering at verbatim and lstlisting
  • include it in lni.dtx

Here the different output of verbatim and lstlisting is shown. I like the output of verbatim more:

grafik

@sieversMartin
Copy link
Member

Regarding the differences between verbatim and listings: the later is far more complex (in a positive sense) and can be configured in a wide way, e.g. to look like verbatim

@koppor
Copy link
Member Author

koppor commented Aug 7, 2017

I solved it by configuring lstlistings "correctly" (b04ef2c)

the default setting of listings with "fixed columns" has a space 0.6em wide, while the characters in Computer Modern Typewriter are 0.5em wide.

Source: https://tex.stackexchange.com/a/179072/9075

@koppor
Copy link
Member Author

koppor commented Nov 8, 2017

I updated the example to have one line per sentence so that is easier to view the diffs using git etc.

I tried to include it in the lni.dtx file. The issue is the magic line:

% !TeX spellcheck = de_DE

When put as this into lni.dtx, it gets removed. If one puts it with two %%, then both are in the lni-paper-example-de.tex file:

%% !TeX spellcheck = de_DE

This is not desired as %% are not common. Tooling should not dominate the users.

I discovered makedtx, but I think, it's not of help, is it?

@sieversMartin
Copy link
Member

I finally found a way using a special form of preamble:

\def\templatepre{%
\perCent\space !TeX encoding = UTF-8^^J%
\perCent\space !TeX program = pdflatex^^J%
\perCent\space !BIB program = bibtex^^J%
\perCent\space !TeX spellcheck = de_DE^^J%
}

See lni.dtx for more details.

@sieversMartin sieversMartin merged commit b1ab42d into master Nov 8, 2017
@sieversMartin
Copy link
Member

Integration completed IMHO

@sieversMartin sieversMartin deleted the addexample branch November 8, 2017 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants