Coder Social home page Coder Social logo

manpage not up to date about libtexprintf HOT 8 CLOSED

cabo avatar cabo commented on June 14, 2024
manpage not up to date

from libtexprintf.

Comments (8)

bartp5 avatar bartp5 commented on June 14, 2024

Yes I know, I already implemented this option. However, it seems I forgot to update the man page (sorry about that). The option is '-m'. Try:

utftex -m "a_{utc} < a_{ntp}"
a    < a
 utc    ntp

from libtexprintf.

cabo avatar cabo commented on June 14, 2024

Thank you!
What works for me.
I now hardwired this option into kramdown-rfc (https://rfc.space).
What is the minimum utftex version I need to have for -m?

from libtexprintf.

bartp5 avatar bartp5 commented on June 14, 2024

I directly implemented it when I implemented together with the sub/superscript characters, that was version 1.21.

Somewhat off-topic but for your use case I would suggest to add the option -e (since version 1.22). Due to the command line option parsing, utftex has a problem with equations starting with a minus. To avoid utftex trying to parse an equation as an option, you can pass -e to end the option parser, e.g. without -e

utftex -m '-x=\int_a^b ...'
utftex: invalid option -- 'x'

and with -e

utftex -m -e '-x=\int_a^b ...'
    b
   ⌠
-x=⎮  ...
   ⌡
    a

from libtexprintf.

cabo avatar cabo commented on June 14, 2024

Thank you for the hint. I noticed that I can pipe the formula to stdin as well? I like that somewhat better than shell-escaping it.

from libtexprintf.

cabo avatar cabo commented on June 14, 2024

Oh, and while I have your attention:

enum_{acc} \approx 48 + \lfloor 2 \cdot log_{10} {acc \over \mathrm{s}} - \epsilon \rfloor

renders

                           acc
   enum    ≈48 + ⌊2 ⋅log   ──── - ϵ⌋
       acc              10  s

which is great except that ≈48 runs together. How do elicit some space?

from libtexprintf.

cabo avatar cabo commented on June 14, 2024

And one more: do you have a "--no-m" equivalent, so a user can undo my presetting of -m?

Aah, found it. It's a toggle...

from libtexprintf.

bartp5 avatar bartp5 commented on June 14, 2024

Oh, and while I have your attention:

enum_{acc} \approx 48 + \lfloor 2 \cdot log_{10} {acc \over \mathrm{s}} - \epsilon \rfloor

renders

                           acc
   enum    ≈48 + ⌊2 ⋅log   ──── - ϵ⌋
       acc              10  s

which is great except that ≈48 runs together. How do elicit some space?

the \approx command "swallows" the following space. If you add two spaces after the \approx you get

utftex -m 'enum_{acc} \approx  48 + \left\lfloor 2 \cdot log_{
10} {acc \over \mathrm{s}} - \epsilon \right\rfloor'
utftex 'enum_{acc} \approx  48 + \left\lfloor 2 \cdot log_{
10} {acc \over \mathrm{s}} - \epsilon \right\rfloor'
                ⎢         acc     ⎥
enum    ≈  48 + ⎢2 ⋅log   ──── - ϵ⎥
    acc         ⎣      10  s      ⎦

If you add more spaces they will be ignored. If you need more spacing you can escape spaces too.
The rationale is that it should be possible to not have a space after a command but I need at least one space to recognize the end of the command.

from libtexprintf.

bartp5 avatar bartp5 commented on June 14, 2024

Updated manpage.

from libtexprintf.

Related Issues (15)

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.