recentpopularlog in

kme : latex   166

« earlier  
Using MathJax with Jekyll - Stack Overflow


If you have sufficient control over the publishing process (e.g. you are running Jekyll yourself), an easy solution is to switch the markdown parser to one that supports TeX. For example, using kramdown:

gem install kramdown

Change the markdown line in _config.yml to

markdown: kramdown

and add something like

<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

to _layouts/default.html. Now you can simply mark any mathematics in your posts with $$.
mathjax  latex  math  typesetting  jekyll  solution 
april 2017 by kme
inputenc Error: Unicode char u8: not set up for use with LaTeX - TeX - LaTeX Stack Exchange
In my case, it was an em-dash, and I received the error as Doxygen was generating LaTeX output from a .md file. This advice worked.
Copying the character after the hyphen and searching for it should help - unless your command window or editor "helps" by converting it to the more common equivalent or replacing unicode with blanks - in that case copy it from your .log and search all the input files.
latex  errormessage  encoding  utf8  solution 
june 2016 by kme
spacing - Separate arraystretch value for every table - TeX - LaTeX Stack Exchange - http://tex.stackexchange.com/
If you define \arraystretch direct before the table (i.e. tabular) inside a group it should only be active for this table.

\begingroup
\renewcommand*{\arraystretch}{<value>}
\begin{tabular}{...}
...
\end{tabular}
\endgroup
latex  typesetting  solution  tables 
february 2016 by kme
vertical alignment - How to specify row height and align the text vertically in middle of a cell? - TeX - LaTeX Stack Exchange - http://tex.stackexchange.com/
\newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}m{#1}}
\newcolumntype{N}{@{}m{0pt}@{}}

\begin{document}

\begin{table}[htbp]
\centering
\begin{tabular}{|C{3cm}|L{4cm}|C{3.5cm}|N}
latex  tables  typesetting  fuckina  solution 
october 2015 by kme
LaTeX/List Structures - Wikibooks, open books for an open world - https://en.wikibooks.org/
Sometimes you want a description where the text begins on a new line. This cannot easily be done with \\. The trick is to use \hfill[1].

latex  typesetting  lists  solution 
october 2015 by kme
MiKTeX - siunitx error: "package expl3 too old" - http://miktex.10937.n7.nabble.com/
\
The package names have changed. expl3 is now l3kernel (and xpackages
is l3packages). Synchronize your repository (in user + admin mode).
Deinstall expl3 and install l3kernel.
</blockquote
maybesolution  errormessage  tex  latex  typesettings 
october 2015 by kme
l'Hospital's rule symbol • Math & Science • LaTeX Community - http://www.latex-community.org/
\documentclass{report}
\usepackage{amsmath}

\newcommand*\Heq{\ensuremath{\overset{\kern2pt H}{=}}}

\begin{document}

\[ a\Heq b \]

\end{document}
math  latex  typesetting  solution 
october 2015 by kme
emphasis - What is the difference between em and emph? - TeX - LaTeX Stack Exchange - http://tex.stackexchange.com/
\emph is like e.g. \textit a command with an argument. \em is the "switch" variant, comparable to \itshape. \em is not an outdated TeX or LaTeX2.09 command but a real LaTeX2e command.
latex  typesetting  newbie  solution 
october 2015 by kme
margins - What is the easiest way to get borders around a page in LaTeX? - TeX - LaTeX Stack Exchange - http://tex.stackexchange.com/
\usepackage{pgf}
\usepackage{pgfpages}

\pgfpagesdeclarelayout{boxed}
{
\edef\pgfpageoptionborder{0pt}
}
{
\pgfpagesphysicalpageoptions
{%
logical pages=1,%
}
\pgfpageslogicalpageoptions{1}
{
border code=\pgfsetlinewidth{2pt}\pgfstroke,%
border shrink=\pgfpageoptionborder,%
resized width=.95\pgfphysicalwidth,%
resized height=.95\pgfphysicalheight,%
center=\pgfpoint{.5\pgfphysicalwidth}{.5\pgfphysicalheight}%
}%
}

\pgfpagesuselayout{boxed}
latex  pageborder  solution 
october 2015 by kme
spacing - parskip stretches more than expected - TeX - LaTeX Stack Exchange - http://tex.stackexchange.com/
This will have no effect unless a page break happens just before a section (in which case the preceding page is allowed to run short). \filbreak is defines such that if a break doesn't happen it adds positive and negative glue that exactly cancels out. (Actually it could have an effect if a latex display environment ends the previous section, as the additional glue will interfere with \@addvspace thus "hiding" the glue already added)

latex  typesetting  solution 
october 2015 by kme
Lists: Enumerate, itemize, description and how to change them - http://texblog.org/
\documentclass[11pt]{article}
\usepackage{enumitem}
\usepackage{array}
\begin{document}
\subsubsection*{Tabular:}
\begin{tabular}{&gt;{\bf}ll}
short label: &amp;blahblah\\
loooooooooong label: &amp;blahblah\\
\end{tabular}
\vspace{1cm}
\subsubsection*{Description flushleft:}
\begin{description}[leftmargin=5cm, style=sameline, align=left]
\item[short label: ]blahblah\\
\item[loooooooooong label: ]blahblah\\
\end{description}
\end{document}
latex  lists  solution 
october 2015 by kme
« earlier      
per page:    204080120160

Copy this bookmark:





to read