Showing posts with label latex. Show all posts
Showing posts with label latex. Show all posts

Saturday, January 22, 2022

Combine PDFs in mac terminal

Combine PDF

gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=BindCoverAll.pdf Cover1.pdf Editorial_Cover_TOC.pdf JNPS732021_Combined.pdf

Monday, December 30, 2019

Alternating color in table conflicts with xcolor

T

My issue was trying to use the table with alternate color in a latex document with the termcal.
\usepackage[table]{xcolor}    % loads also »colortbl«

There were conflicts.

\PassOptionsToPackage{table}{xcolor} inserted before the \documentclass{..} fixed the issue!


Yes, Thanks to
https://tex.stackexchange.com/questions/5363/how-to-create-alternating-rows-in-a-table

Thursday, February 18, 2016

Latex Installed on Windows 10

MiKTeX installed the Latex.exe in the following location:
Not so obvious, Is it?
C:\Users\myusername\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64

Wednesday, May 7, 2014

Merging PDF with latex

Use pdfpages package in the packet manager, if necessary. Specially in windows 7 I had to install the pdfpackage.sty using packet manager as an admin.
\documentclass{article}
\usepackage{pdfpages}
\begin{document}
\includepdfmerge{One.pdf,-}
\includepdfmerge{Two,-}
\includepdfmerge{Three_part.pdf, 3-14} % mention range
\end{document}





Thursday, November 25, 2010

Matlab codes in Latex

Use the package (mcode.sty) from:
http://www.mathworks.com/matlabcentral/fileexchange/8015-m-code-latex-package
add:
\usepackage[options]{mcode}
in the "header"
follow:
http://my.opera.com/locksley90/blog/2008/02/25/how-to-include-matlab-source-code-in-a-latex-document

Here is what I did:

This creates a box, pushes everything inside the box (ugly though) and forces next item to new page
\lstinputlisting[label=lst:run_main,breaklines=true, caption={\mcode{run_main.m}}]{G:/academy/random-s-circle/jan14-refine/run_main.m}
\clearpage 

Thursday, September 30, 2010

Writing Equations in Blogspot Blogs


I can write equations in blogspot using latex command: $1+x^2$.


The Function \[\frac{sin(x)}{x}\] .

Since I did not include the p tag to it, it was not interpreted.
http://www.codecogs.com/pages/forums/pagegen.php?id=1675

However, If I add the p html-tag, it will appear as:

The Function \[\frac{sin(x)}{x}\] .



One can also type the latex and paste in the blog posts...
http://codecogs.izyba.com/latex/eqneditor.php
Just remember to put
<script type="text/javascript" src="http://latex.codecogs.com/latex.js"></script>

in the post
I am not sure how to change the dark background...