Comments (11)
Pandoc has a quirk: it turns on --smart
by default for the latex writer. This converts all your quotes. It's a quirk because --smart
is a reader option, not a writer option. You can see a discussion of this here:
https://groups.google.com/d/msg/pandoc-discuss/ZiHEil3E-ls/6HkPKIegCQAJ
Originally, I did not reproduce this quick in panzer, but users found that confusing, so I changed panzer to behave exactly as pandoc.
The solution for both pandoc and panzer is to use the command line option --no-tex-ligatures
for the latex writer. You can do this in a style definition as follows:
ExampleStyle:
latex:
commandline:
smart: false
no-tex-ligatures: true
from dot-panzer.
Hi,
with smart: false
all the " disappear, while with no-tex-ligatures: true
nothing changes. Both results in no ".
Hints?
from dot-panzer.
Hmm, the way to debug this is to try running vanilla pandoc on your document and identify which command line switches produce the output that you are looking for. If you can tell me those switches, then I can tell you want to put into the panzer style file. It is also possible that the template that you are using (one of mine?) doesn't support non-smart quotes -- this is something I never tested. Start with something small and simple with vanilla pandoc, and then build up from there.
from dot-panzer.
Hi @msprev with vanilla pandoc it works (I used uberwriter to build but it simple execute pandoc). Checking the template in /usr/share/pandoc/data/templates
named default.latex
seems to be quite different in the packages it uses compared to the one in your dot files (that I'm using with panzer).
Maybe is something related to that?
This is the default.latex
pandoc file
from dot-panzer.
It must be the template. My templates were hacked together for my personal use (as the warning on the front page goes) and were not designed with this particular case in mind. You can modify my templates, or stick in your own, or stick in ones from uberwriter. Just copy a template file into the /template/
director of .panzer
and change the template:
field in the style definition to source it.
It's on my todo list to refactor my templates to make them more flexible and cover the same cases as pandoc's default templates. This will happen, but not right now. I'd suggest that you hack your own template in the meantime. You can see pandoc's default latex template by running pandoc -D latex
.
Sorry not to be more help on this but reworking a template is a major undertaking that, while on my horizon, is not likely to happen right now!
from dot-panzer.
Hi,
I'll check the differences between default pandoc template - that works for me - and yours to see if I can make it works. I think your template could be a good starting point to beginners with panzer. This is the reason why I made a PR some days ago :)
from dot-panzer.
Thanks for your kind words! Let me know if it doesn't work on switching to a new template. I really do need to tidy up my templates sometime so that these problems don't arise.
from dot-panzer.
No problem!
Well actually I still don't understand the main differences between the files: to me differences are mainly for the xelatex
and luatex
part of the pandoc template file, but besides that I don't see anything regarding quotes.
Very strange.
from dot-panzer.
I think it's likely that something is happening on the xelatex
part that is causing your quotes problem.
from dot-panzer.
Fixed.
This was the line incriminated. It use the package csquotes which I don't have installed and that usually converts, with autostyle
set, basing on the language declared using babel
(or polyglossia
). Removing the line resolves the problem. I'm interested however in re-implementing it to see if I can make it works basing on the language (but before that I need to sent a paper so I simply removed the line).
from dot-panzer.
Great! Well done for sorting it out!
from dot-panzer.
Related Issues (8)
- Would really appreciate notes on use of this panzer support HOT 2
- Authorblock not compiling HOT 4
- Bio section HOT 1
- Documentation: include command for generating a pdf HOT 1
- UnboundLocalError with paginatesects.py filter HOT 5
- Filter Explanations? HOT 2
- How to specify pandoc markdown extensions and variables? HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dot-panzer.