Timeline for Font style in Mathematica and .tex file
Current License: CC BY-SA 3.0
26 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 19, 2019 at 10:40 | comment | added | Rainer Glüge | Works great! Thank you! | |
Jul 13, 2019 at 0:57 | comment | added | Astor Florida | @Szabolcs Guilty! I didn't read it once I got it working. Maybe I should say "Note for newbies, read the documentation!" | |
Jul 12, 2019 at 16:53 | comment | added | Szabolcs |
@axsvl77 Just use \text , not \textrm . This is shown in several examples in the documentation. Suggestions on how to improve the documentation are always welcome, but keep in mind that just adding more information and making it longer is not going to help—people already don't read it.
|
|
Jul 12, 2019 at 14:54 | comment | added | Astor Florida | Note for newbies, to leave math mode, it will look like this: {"\\textrm{Frequency}", "a(z) = \\sin z"} | |
Apr 12, 2019 at 12:39 | comment | added | Szabolcs | @Rodrigo Only if you could install a full TeX system in Mathematica Online (i.e. no). | |
Apr 12, 2019 at 12:29 | comment | added | Rodrigo | Can I use that package in mathematica online? | |
Jan 23, 2018 at 15:20 | comment | added | Iosif Pinelis | @Szabolcs : Thank you very much again -- for such a great product as MaTeX and your responses. It works great with CMU fonts. | |
Jan 23, 2018 at 10:08 | comment | added | Szabolcs | @IosifPinelis Probably this will help: mathematica.stackexchange.com/a/161530/12 | |
Jan 23, 2018 at 2:40 | comment | added | Iosif Pinelis | @Szabolcs : Thank you very much for your hint, and sorry for missing the paclet extension. However, now I have a nice looking font for the tick labels with the Times font, but not nearly as nice as in your picture with Latin Modern. The notebook is at the link my.pcloud.com/publink/… . Could you please help me with this as well? | |
Jan 22, 2018 at 21:49 | comment | added | Szabolcs |
@IosifPinelis Try PacletInstall["C:\Users\iosif\Documents\MaTeX-1.7.3.paclet"] (not the added extension), and make sure that file actually exists.
|
|
Jan 22, 2018 at 21:21 | comment | added | Iosif Pinelis | MaTeX looks very nice. However, when I try to install it, I get In[83]:= Needs["PacletManager`"] PacletInstall["C:\Users\iosif\Documents\MaTeX-1.7.3"] During evaluation of In[83]:= PacletInstall::notavail: No paclet named C:\Users\iosif\Documents\MaTeX-1.7.3 is available for download from any currently enabled paclet sites. Out[84]= $Failed How could this be fixed? Thank you. | |
Nov 9, 2016 at 7:48 | comment | added | Szabolcs |
@Felix Try this for a speedup: Transpose@MapAt[MaTeX, Transpose@LinTicks[-1, 1], 2] . Applying MaTeX to a whole list of expressions will call LaTeX only once. This works in version 1.6 or later. Personally I don't often use MaTeX for ticks. I just set the font to Latin Modern instead. I use MaTeX only when I have something more complicated than decimal numbers in the ticks, e.g. for $\frac{\pi}{3}$.
|
|
Nov 8, 2016 at 20:51 | comment | added | Felix |
I just figured out how to combine CustomTicks with MaTeX: MapAt[Function[x, MaTeX[x]], LinTicks[-1, 1], {All, 2}] will take the tics generated by LinTicks and apply MaTex to the actually printed labels, i.e., to the second column of the output of LinTicks . This even solves the problem of the ugly 1. being printed instead of 1 or 1.0 .
|
|
Apr 4, 2015 at 0:51 | comment | added | Szabolcs | @TMM I use the CustomTicks package from here when I need more control over ticks. | |
Apr 4, 2015 at 0:02 | comment | added | TMM | I am still not able to get it to work with FrameTicks, and typing in all the ticks for each figure is too much work as I am using this to style tons of different figures used in my thesis. Also specifying ticks manually seems to have the unwanted side-effect of removing the smaller ticks inbetween the larger ticks. For now I'll just keep the ticks the way they were, and use your package for styling the frame labels. | |
Apr 3, 2015 at 20:50 | comment | added | TMM | Thanks for the link, that indeed seems to be the problem. I upgraded to Mma 10.1 now, and although it works with Ticks, the same idea does not seem to work with "FrameTicks" for which the same bug still seems present. | |
Apr 2, 2015 at 13:41 | comment | added | Szabolcs |
@TMM Apparently this is why (it's a bug), and it's fixed in 10.0.2 ... yes, the main reason why this is difficult is because AbsoluteOptions is so unreliable and FullGraphics is near useless ...
|
|
Apr 2, 2015 at 13:37 | comment | added | TMM |
That example doesn't work on my pc (Mma 10.0.1), with errors of the form Axes::axes: "{{False,False},{False,False}} is not a valid axis specification." (and similar complaints about Ticks). Something simple like AbsoluteOptions[Plot[Sin[x], {x, 0, 10}, Ticks -> Automatic], Ticks] returns the same errors; I guess AbsoluteOptions is a bit buggy.
|
|
Apr 1, 2015 at 18:20 | comment | added | Szabolcs | @TMM Maybe like this. Note how AbsoluteOptions changes the ticks though ... | |
Apr 1, 2015 at 18:15 | comment | added | Szabolcs |
@TMM For ticks, I would recommend simply using the Latin Modern font instead of MaTeX. While theoretically it should be possible to auto-process tick labels, there are many obstacle ... Option 1: Use FullGraphics to render the axes and ticks as graphics objects, then go from there. FullGraphics has stayed neglected since Mma6 and it's practically unusable in v10. Option 2: Get the tick labels using AbsoluteOptions , then process those. This works better, but not perfectly. Often, what AbsoluteOptions returns is quite a bit different from the automatically rendered ticks.
|
|
Apr 1, 2015 at 9:52 | vote | accept | zenith | ||
Apr 1, 2015 at 2:05 | comment | added | TMM | Actually there's one question I had, which may also be useful to readers of this website: is it possible to automate the MaTeXing further? i.e. Write something like MaTeX[Plot[x, {x,0,1}]] and it automatically TeXifies the tick labels on the axes? Alternatively, is there a convenient way to TeXify automatically generated ticks on axes? Many thanks again! | |
Mar 31, 2015 at 2:04 | comment | added | Szabolcs | @TMM I'm glad you find it useful. Feel free to email me if you have any comments or suggestions. | |
Mar 30, 2015 at 23:35 | comment | added | TMM | Today I also wanted to ask a similar question, but just when I had almost given up hope that a nice, clean solution would exist, I came across your answer and your easy-to-use package "MaTeX." Many thanks for developing such a convenient package (and for clearly documenting the steps needed to make it work)! | |
Mar 6, 2015 at 2:07 | history | edited | Szabolcs | CC BY-SA 3.0 |
added 453 characters in body
|
Mar 6, 2015 at 1:50 | history | answered | Szabolcs | CC BY-SA 3.0 |