Giter VIP home page Giter VIP logo

Comments (3)

lierdakil avatar lierdakil commented on June 13, 2024

Hi.

Sorry, this is not implemented as of yet, but LaTeX titles are customisable via pure latex, which can be embedded into source Markdown (and will be ignored in all outputs except LaTeX/PDF), f.ex. with default template, this will work (add this at the beginning of your Markdown document, after metadata block, and before any figures):

\renewcommand{\figurename}{Fig.}

I hope this workaround isn't too inconvenient for you.

Main problem with LaTeX is that there is a multitude of ways to specify figure titles, depending on packages used, etc, so there really is no silver bullet. That's why it's not implemented -- I haven't figured out yet how should I go about this to make it work for as many cases as possible.

I suggest leaving this issue open as a reminder and for posterity.

from pandoc-crossref.

andresmrm avatar andresmrm commented on June 13, 2024

Wow! Worked like a charm!
Thanks again!

(Didn't know Pandoc ignored pure Latex in the other outputs, and was to lazzy
to create my own template)

Quoting Nikolay Yakimov (2015-05-06 21:24:23)

Hi.

Sorry, this is not implemented as of yet, but LaTeX titles are customisable via
pure latex, which can be embedded into source Markdown (and will be ignored in
all outputs except LaTeX/PDF), f.ex. with default template, this will work (add
this at the beginning of your Markdown document, after metadata block, and
before any figures):

\renewcommand{\figurename}{Fig.}

I hope this workaround isn't too inconvenient for you.

Main problem with LaTeX is that there is a multitude of ways to specify figure
titles, depending on packages used, etc, so there really is no silver bullet.
That's why it's not implemented -- I haven't figured out yet how should I go
about this to make it work for as many cases as possible.

I suggest leaving this issue open as a reminder and for posterity.


Reply to this email directly or view it on GitHub.*

from pandoc-crossref.

lierdakil avatar lierdakil commented on June 13, 2024

I have implemented rudimentary support for figureTitle and tableTitle with \renewcommand*. It works only for pdf/standalone output though, but I assume that's not a huge problem. Will probably publish to hackage before end of May.

from pandoc-crossref.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.