tex

Is a successor for TeX/LaTeX in sight? [closed]

穿精又带淫゛_ 提交于 2019-12-02 13:48:52
TeX/LaTeX is great, I use it in many ways. Some of its advantages are: it uses text files, this way the input-files can be diffed and many tools exist to work with text it is very flexible it has a stable layout: if I change something at the start of the document, it doesn't affect other things at the end of the document it has many extensions to reach different goals (a successor would start without extensions, but would have a good extension-system) you can use standard build control tools to support complicated documents (thanks dmckee) you can encapsulate solutions and copy&paste them to

Get started with Latex on Linux [closed]

家住魔仙堡 提交于 2019-12-02 13:46:26
Impressed by is-latex-worth-learning-today , and many how-to's on Windows, How do you have someone started with LaTeX on Linux? How do you generate a pdf out of it and give up the OOO Word processer? Update: Thanks to all the suggestions given in here. I was able to create an awesome ppt using the Beamer class: http://github.com/becomingGuru/gids-django-ppt . I found this approach too far better than using powerpoint and the like. Those interested may checkout the TEX file , with many custom commands and the corresponding presentation . First you'll need to Install it: If you're using a distro

Inconsistent tick labels font with matplotlib subplots

丶灬走出姿态 提交于 2019-12-02 07:19:00
I'm making a grid of plots using matplotlib.pyplot.subplots , and I want the tick labels to be in LaTeX's sans-serif font, but when I do use subplots I always get at least one tick label rendered in matplotlib's default font. Here's a MWE: import matplotlib.pyplot as plt fig, axes = plt.subplots(nrows=1, ncols=1) x = [1,2,3,4,5] plt.plot(x) plt.rc('text', usetex=True) plt.rc('font', family='sans-serif') plt.show() If you comment out the fig, axes = plt.subplots line, the tick labels display as they should. I'm using python version 3.6.0 and matplotlib version 2.0.0 Changes to the rcParams

Replacing quotation marks with “``” and “''”

試著忘記壹切 提交于 2019-12-02 05:10:31
问题 I have a document containing many " marks, but I want to convert it for use in TeX. TeX uses 2 ` marks for the beginning quote mark, and 2 ' mark for the closing quote mark. I only want to make changes to these when " appears on a single line in an even number (e.g. there are 2, 4, or 6 " 's on the line). For e.g. "This line has 2 quotation marks." --> ``This line has 2 quotation marks.'' "This line," said the spider, "Has 4 quotation marks." --> ``This line,'' said the spider, ``Has 4

Replacing quotation marks with “``” and “''”

吃可爱长大的小学妹 提交于 2019-12-01 23:26:14
I have a document containing many " marks, but I want to convert it for use in TeX. TeX uses 2 ` marks for the beginning quote mark, and 2 ' mark for the closing quote mark. I only want to make changes to these when " appears on a single line in an even number (e.g. there are 2, 4, or 6 " 's on the line). For e.g. "This line has 2 quotation marks." --> ``This line has 2 quotation marks.'' "This line," said the spider, "Has 4 quotation marks." --> ``This line,'' said the spider, ``Has 4 quotation marks.'' "This line," said the spider, must have a problem, because there are 3 quotation marks." -

Transform a tex source so that all macros are replaced by their definition

心不动则不痛 提交于 2019-12-01 16:16:50
问题 Is it possible to see the output of the TeX ‘pre-processor’, i. e. the intermediate step before the actual output is done but with all user-defined macros replaced and only a subset of TeX primitives left? Or is there no such intermediate step? 回答1: Write \edef\xxx{Any text with any commands. For example, $\phantom x$.} And then for output in the log-file \show\xxx or for output in your document \meaning\xxx 回答2: Try the Selective Macro Expander. 回答3: TeX has a lot of difference tracing tools

\frac{}{} won't work for me w/ pylab

混江龙づ霸主 提交于 2019-12-01 04:35:38
问题 I'm rather new at using python and especially numpy, and matplotlib. Running the code below (which works fine without the \frac{}{} part) yields the error: Normalized Distance in Chamber ($ rac{x}{L}$) ^ Expected end of text (at char 32), (line:1, col:33) The math mode seems to work fine for everything else I've tried (symbols mostly, e.g. $\mu$ works fine and displays µ) so I'm not sure what is happening here. I've looked up other peoples code for examples and they just seem to use \frac{}{}

Create own BibTeX style or customize existing one?

牧云@^-^@ 提交于 2019-12-01 03:38:28
I'm looking for a way to define new BibTeX style or to customize existing one. I have two reasons for this: I want the author names/editors to be italic (for articles in book, book, magazines, encyclopedia etc) I want numbers at the beginning Example: Secondname, B . Book title. Place Year. Site number. Article author, A . Article title. In: Book author, B , Book title, Place Year, site number. Any suggestions? P.S.: The OS is Ubuntu . I'd recommend biblatex . It's not included yet with most TeX distributions at the authors request, but it is completely usable and very well documented . I

TeX in matplotlib on Mac OS X and TeX Live

萝らか妹 提交于 2019-12-01 03:22:01
I have the following Hello World code to try out TeX rendering with matplotlib on my Mac. import matplotlib.pyplot as plt from matplotlib import rc rc('text', usetex=True) rc('font', family='serif') plt.text(2,2,r"Hello World!") plt.show() With that code, I'd get the following error: sh: latex: command not found Exception in Tkinter callback <... a long Traceback here ...> RuntimeError: LaTeX was not able to process the following string: 'lp' Here is the full report generated by LaTeX: I don't see any kind of full report after the last line. Anyway, I think this is a path problem. Some

Create own BibTeX style or customize existing one?

旧时模样 提交于 2019-11-30 23:41:53
问题 I'm looking for a way to define new BibTeX style or to customize existing one. I have two reasons for this: I want the author names/editors to be italic (for articles in book, book, magazines, encyclopedia etc) I want numbers at the beginning Example: Secondname, B . Book title. Place Year. Site number. Article author, A . Article title. In: Book author, B , Book title, Place Year, site number. Any suggestions? P.S.: The OS is Ubuntu. 回答1: I'd recommend biblatex. It's not included yet with