I'm trying to insert some symbols from LaTeX Math Symbols into my LaTeX document: under the relational symbols heading, I want join (⨝) and square supset (⊐).
They both have a little b symbol after them. What does that mean; how do I insert them into my doc? I tried adding them ignoring the b but it seemed to error and not work.
I'm using the small Mac install of LaTeX.
My copy of A Guide to LaTeX by Helmut and Kopka says of \sqsupset (amongst others):
"Note: the underlined symbol names [...] are only available in LaTeX 2e if one of the packages latexsym or amsfonts has been loaded."
The book doesn't show \Join in its symbol tables at all, however it lists \bowtie which appears to produce the same symbol, and which has no footnotes or warnings associated with it at all :-)
They're using meta-LaTeX on you: that is a superscript "b" ($ indicates a short math expression and the caret is the superscript).
What they're indicating is that there is a footnote. It is shown in the "Binary Operation Symbols" section.
$^b$ Not predefined in a format based
on {\tt basefont.tex}.
Use one of the style options
{\tt oldlfont}, {\tt newlfont}, {\tt amsfonts} or {\tt amssymb}.
So, if you are seeing an error, that would indicate to me that you are using a basefont format. Try one of the style options listed in the footnote and see if you have more luck. As explained below,
\usepackage{newlfont}
is worth a try. That should enable symbols such as \Join.
As the footnote on that page explaines, you should use special settings to get these symbols. So for instance, if you add \usepackage{newlfont} to the top of your file, you'll be able to get the symbols, e.g. $\sqsubset$.
Related
I am trying to create a symbols list. I have been provided a LaTex template from the university to write my thesis on. I am not well versed in LaTex, and need some help to determine why my list of symbols are not showing up in the compiled document.
I have a "List of Symbols Glosseries.tex" page that contains a bunch of sample symbols. I have added one test symbol at the bottom labeled "ET." However, in the compiled document, I only see 7 symbols, when in the "List of Symbols.tex" document there are 10.
This is the symbols code:
% This uses the glossaries package. With this package, you can include multiple types of lists, track page numbers if desired, and define new lists. More information can be found at the following sites: https://mirrors.mit.edu/CTAN/macros/latex/contrib/glossaries/glossariesbegin.pdf and https://mirrors.rit.edu/CTAN/macros/latex/contrib/glossaries/glossaries-user.pdf https://www.overleaf.com/learn/latex/Glossaries
%*****************************************
%Define your list of glossary items below. Remember that the entries that you enter in this file will not automatically appear in the List of Symbols. You also have to reference the symbol in the body of your thesis by using the \gls command.
%symbols
\newglossaryentry{deg}{name=$^\circ$, description={Degree}}
\newglossaryentry{grav}{name={1D}, description={Normal gravity environment}}
\newglossaryentry{wf}{name={\textit{f}}, description={Wear factor}}
\newglossaryentry{alp}{name={$\alpha$},description={Alpha}}
\newglossaryentry{theta}{name={$r_O$}, description={ecosystem respiration at reference temperature $T_a=0{^\circ}$C}}
\newglossaryentry{te}{name={$\tau_e$}, description={precision of the normal distribution of the likelihood}}
\newglossaryentry{q10}{name={$Q_{10}$}, description={multiplication factor to respiration with 10$^\circ$C increases in $T_a$}}
\newglossaryentry{phi}{name={$\phi$}, description={vapour pressure deficit response function}}
\newglossaryentry{del}{name=$\delta$, description={Transition coefficient constant for the design of linear-phase FIR filters which are used to take up space when testing the list of symbols}}
%this is the new symbol I am testing
\newglossaryentry{ET}{name=$\lambda$\text{E}, description={Latent Heat of Vaporization supplied to the atmosphere in watts per meter squared}}
Here is the code referenced in the "main.tex" which calls the list of symbols and generates a page with each symbol and description under the "list of symbols" title:
%**************************
%List of Symbols Section
%**************************
\singlespacing
\renewcommand*{\arraystretch}{2}
\printglossary[title=\centering List of Symbols, title=List of Symbols,style=mystyle,nonumberlist]
Here is the portion of the .pdf generated that is missing symbols:
Why is this happening? I appreciate any information provided.
I know that sounds vague. Basically I just want Sublime to highlight custom syntax (color the text), just like it does with native syntax.
I am using Sublime to write LaTeX code. For those that don't know, LaTeX equations are typically enclosed by \[ \], e.g.
\[ E = m c^2 \]
Sublime understands that syntax and colors the enclosing code appropriately.
However, I use my custom defined command, \eq{ ... }, which wraps the \[ \] functionality (so I can globally change some settings by just redefining the \eq definition). e.g.
\eq{ E = m c^2 }
I don't know anything about Sublime under the hood beyond basic key bindings. I want to expand Sublime's understanding of syntax to incorporate my custom command without wasting a ton of time digging through tutorials and such.
Since you are mainly interested in the result and not in the reasoning, I will try to be as straight forward as I can.
The LaTeX syntax of Sublime Text will change in release 3119 and I would recommend to use that, if you want to change something.
Just download it from https://github.com/sublimehq/Packages and put the LaTeX folder into the folder, which opens when you select Preferences >> Browse Packages... in the Sublime Text menu.
Afterwards open the file LaTeX.sublime-syntax and search for ensuremath (LaTeX.sublime-syntax#L498). Duplicate that part (everything with a higher indent) and change the command to the command you wish, e.g. in your example this would be - match: '((\\)eq)(\{)'.
Aside the new syntax removes the highlighting of math environments as strings, because this has lead to several problems.
I made a small entry in the LaTeXTools wiki to explain, how you restore the highlight.
E.g., I have this Markdown cell that use the sanctioned way of using a LaTeX macro in the notebook
$\def\abc{a\,b\,c}$ The first three letters are $\abc$.
and I have what I want in the notebook. OTOH, when I "Download as PDF via LaTeX"
the conversion process fails with these errors in the standard error of the console
! Undefined control sequence.
l.229 ...c{a\,b\,c}\) The first letters are \(\abc
\).
?
! Emergency stop.
l.229 ...c{a\,b\,c}\) The first letters are \(\abc
\).
! ==> Fatal error occurred, no output PDF file produce
Transcript written on notebook.log.
because Latex itself doesn't accept a definition embedded in a mathematical expression. Because Markdown doesn't accept these definitions outside a mathematical expression I feel like I'm trapped in a Comma 22 situation.
I'm pretty sure the system can be fooled using Raw NBconvert cells and smart latex code but I'm missing some step in my head... Any help will be properly appreciated, ciao
The definition is accepted in the mathematics, but in TeX, definitions are localized to the nearest enclosing group. Math delimiters are enclosing groups, so the definition is remove after the math. Try using \gdef instead of \def to get a global definition. This will require that you load the begingroup extension in MathJax, so you will have to add that to the configuration (I don't know how that is done in IPython, though).
I'm currently trying to save a stress vs. strain curve using Octave. On this plot, I want to include text showing the equation for calculating engineering stress and engineering strain. Both of these require greek letters (\sigma and \epsilon respectively) as well as subscripts for the formulae.
Currently, using print with -deps, -dpng, or any other device, it creates a file, however the greek letters appear as the words "sigma" and "epsilon", and wherever I have a subscript, such as 0, it just appears as "_0". This looks very unprofessional.
Since I'm generating some 25 graphs, I don't want to have to go through and do a screenshot for each one. Does octave support saving the generated figure as displayed? I intend to use the generated files in a LaTeX document later (preferably as png so I can email them separately too).
I've also tried changing the "graphics_toolkit" option between fltk and gnuplot however it doesn't seem to help.
Attached to this post is a screenshot of the desired results and the actual results.
I am currently "not allowed" to post images, so I'll link them:
http://i.imgur.com/Tjt5Ecn.png (screenshot, desired result) and http://i.imgur.com/SP3hekd.png (directly saved, actual result)
Does anyone know a good way to print a figure from Octave which includes greek characters and subscripts in the titles?
Since you plan to use your graph in a Latex document, generating the graphs with -depslatex and converting them to pdf is a good idea . (Results look slightly better than direct -dpdflatex).
With -depslatex, you can include Latex code in your figures that will be written to a separate tex file.
Note that you need to use double backslashes \\ to export a single backslash.
graphics_toolkit("gnuplot");
...
legend("$\\varepsilon$");
print(sprintf("graph%s_%d.eps", name, type), '-depslatex', '-S200,270', '-F:9');
system(sprintf("epstopdf graph%s_%d.eps", name, type));
On the Latex side, you then \input the tex file generated by Octave. On the plus side, since you need 25 graphs, you can automatize this process on both sides Octave and Latex.
\newcommand{\mygraph}[1]{%
\graphicspath{{./figures/}}
\resizebox{0.495\linewidth}{!}{\relscale{1.0}\small%
\input{./figures/#1.tex}
}%
}
\mygraph{graph1_1}
Here, a Latex command \mygraph is defined to scale and include a figure located in a subfolder.
(I am using Octave 4.0.0 with gnuplot 4.4 on Ubuntu 12)
My intuition was
Lorem ipsum\footnote{long footnote
that spans a whole
bunch of
lines.
}
But regardless of where I put the { and } in relation to the footnote text, I get the following error:
Latex Error: ./mydoc.tex:142 Package inputenc Error: Unicode char \u8:― not set up for use with LaTeX.
Footnotes are filled in the availible space just like any other paragraph: you just write
\footnote{
a whole lot of text that goes on and on and on and...
...
and may consists of multiple sentences. But after a while
...
it finally comes to a stop.
}
That is not your problem. looking at the error message (which I don't recognize from personal experience), I'd say your problem is character set or font related.
Is you editor using unicode?
The error you're getting indicates there's a coding setup issue. Googling the error message suggests you may be running TexShop, or you need to install latex unicode support. use
apt-get latex-ucs
or something similar and try it again.
I get this error a lot when I cut text from another document and paste into LaTeX. My plain text editor doesn't warn me that I pasted in some bad character. Although it is tedious, you can
comment out the entire text of your footnote, replace it by XX, and confirm that now your document runs
retype the entire text of your footnote by hand.
This always works for me. As a shortcut, you may be able to see a punctuation mark that is the culprit and simply fix that.
In the example you gave, it looks like maybe you got an em-dash character that needs to be replaced by the standard LaTeX construction of two or three hyphens.