Comments (8)
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.
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.
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.
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.
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.
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.
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.
Updated manpage.
from libtexprintf.
Related Issues (15)
- Create a target for library HOT 1
- New release? HOT 1
- Support more constructs HOT 11
- Misalignment HOT 1
- Switch to math from a text block HOT 1
- 1.17 building fails HOT 5
- Sum not vertically centered HOT 2
- v1.18 build failure on Linux & macOS HOT 3
- Use Unicode subscripts/superscripts where available? HOT 13
- Unicode primes HOT 4
- LaTeX token don't work correctly HOT 2
- Gui for utftex HOT 3
- maintainer-clean fails on mac-os
- \% is not supported and breaks things HOT 10
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 libtexprintf.