Comments (3)
Implemented in #35.
from pydetex.
The example "I am \MakeUppercase{Happy}" => "I am"
should be translated to "I am \MakeUppercase{Happy}" => "I am HAPPY"
. Thus, we should add the following:
\uppercase{text}
\lowercase{text}
\MakeUppercase{text}
\MakeLowercase{text}
To add these methods, the function
Lines 702 to 787 in 3b39b08
commands
:
commands = [...,
('MakeUppercase', [(1, False)], lambda s: s.upper(), 1, 'normal', 'normal', (False, False))
]
In that case, line
Lines 778 to 779 in 3b39b08
string.format
, for example:
if callable(cmd_tag):
text = cmd_tag(*args)
else:
text = cmd_tag.format(*args)
With such methods, I think we could easily add more in the future. This solution differs from #28 because of the nature of the input. Citeauthor requires cites and a different font type; in this case, it only takes one arg of "normal" text.
Let me know if you can add these methods =). Greetings
from pydetex.
Thanks for the response. I have not tried the solution yet, but it looks reasonable. I will reply to you as soon as possible after I tried it. :)
from pydetex.
Related Issues (8)
- flatlatex workaround to keep spaces HOT 1
- support \citeauthor HOT 10
- Support acronym package HOT 5
- Fix \cite {key} HOT 1
- Setup with pipx HOT 2
- Installation instruction on the web page HOT 5
- Pyperclip not recognized. HOT 1
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 pydetex.