I’ve received a lot of feedbacks on package installation. People don’t like it at all. It’s too much work. On the other hand, I don’t like to bundle everything into the app and blow it into some hundreds-of-megabytes monster. Therefore in TeX Writer v1.5 we introduce an on-demand package downloader to make everyone happy. By default it’s off. You will need to go to settings and turn “Auto download” on. If this feature is proven to be stable, then we’ll try to turn it on by default in future.
Here is how it works: During compilation, if a package file is neither found in the bundled app folder nor in the texmf-local directory, TeX Writer will try to look it up in online repository (Internet connection is required). If a match is found, the package will be downloaded into texmf-local. And next time, it will just use the one in texmf-local without looking for online version any more. If you would like to redownload everything, just delete the texmf-local folder.
Another good news for CJK Chinese and Greek users: you don’t need to download the zip files and install them manually. All the files and fonts will be downloaded on demand. Just make sure you have a stable internet connection. Both of them are large packages.

Sure … I’d be happy to try the beta…
-Melvyn
I think this will be my last experiment for a while: I tried including an equation and a figure. The equation worked perfectly; the figure compiled but did not display on the iPad. The figure is an ‘eps’ file. Converting that to either ‘jpg’ or ‘pdf’ worked if I also removed the ‘height’ parameter from \epsfig line, leaving just a width setting.
Would you like to try a beta build of next TeX Writer ? (Support e-TeX, and times font) Please send an email to support AT litchie.com
I’ll wait for the next update. I almost always need bibtex and natbib. Even if not fully supported, there needs to be a way to push through any errors/warnings generated by citations—the compilation now chokes on undefined citations (undefined because natbib is commented out). I haven’t tried putting my graphics into these striped-down files…. I’ll try that out later.
On an unrelated topic: I use a ZAGG keyboard with my iPad and I’ve noticed that some things that work fine with other apps don’t seem to work at all in TeX Writer. Most notably, the ability to use opt arrow and cmd arrow to move by words or lines. Am I missing something, or is that something that is known not to work?
There’s great (not yet fully realized) potential in this app. Cheers….
The keyboard shortcuts will be added in next version too.
I also had to comment out usepackage{natbib}, ulem, and normalem before it would compile.
The full tex document won’t compile without some of those (natbib, in particular). Any plans to support that?
Interesting, I can compile it without commenting natbib. Maybe you should wait and try the next version. (Already submitted for review).
Commenting out the use times package returned the output to being visible. … still no further progress on the first (and most pressing) problem, though.
pdfpages, times and etoolbox are not supported. After commenting them out, compilation is ok and pdf is generated correctly with the new additional packages I’ve added to online repo. Please wait for the update, should be soon!
Inserting “\renewcommand{familydefalut}{cm}” before \begin{document} produces the following error:
! Missing control sequence inserted
\inaccessible
1.20 \renewcommand{familydefault}
{cm}
! Emergency stop
\inaccessible
1.20 \renewcommand{familydefault}
{cm}
End of file on the terminal!
I have made a little progress: The infwarerr.sty file I had manually downloaded was corrupt. I replaced that. The missing \begin{document} error is still there, but the log now complains about “\input{pp\AM@driver.def}. That line is in pdfpages.sty, which has been downloaded. At line 65 of that .sty file: \input{pp\AM@driver.def}
At this point, I have no further ideas as to how to proceed.
On a related issue, I tried compiling a short TeX file that calls for virtually no packages. That file did compile, BUT the pdf is essentially blank (white font on a white background???). A few math characters do appear, such as $\beta$.
For the last problem, please put
\renewcommand{\familydefault}{cm}
before \begin{document}
bitset.sty is on the web. I did a google search and found a few sources. (I have no idea what it’s for, however
Ok, so in the end I got hyperref to compile. To sum up, I had to get the following sty files and manually put them in TeXinput under texmf-local:
ltxcmds (second link that comes up in Google, first one doesn’t work!!), pdftexcmdfs, infwarerr, kvsetkeys, etexcmds, pdfescape, bitset, bigintcalc, atbegshi, and finally gettitlestring.
However, it doesn’t produce the desired result (namely there are no hyperlinks, it’s as if I had used \ref or \eqref without any hyperref).
Thank you for your update. The DVI->PDF translator in TeX Writer can’t handle hyperlinks right now.
I manually downloaded that one and “infwarerr.sty”. Then it stopped complaining about everything but the \begin{document}/
Mostly by just letting the app auto download everything and (finally) realizing how to force it to recompile. I had to manually find and copy two .sty files that could not automatically be found. Why, I don’t know since they were both easy to find via ‘google’. I’ve now trimmed the TeX file down to only a few lines but missing \begin{document} is flagged as an error.
I’ll try to copy it into a comment and send it in a couple of minutes.
-Melvyn
I want to love this app, but can’t get it to compile a Tex file. The log complains that pdfpages.sty is not found. But with Sync texmf-local ON and Auto download ON, Dropbox shows texmf-local at the same level as the folder containing my .tex file and within texmf-local in TeXinput and within that several files including pdfpages.sty. Any suggestions would be welcome (BTW, restarting the app doesn’t change anything).
Thanks,
Melvyn
Yes, I have exactly the same problem with hyperref. Like you’re describing it is in TeXinput but still not compiling if I try to use the hyperref package. Any help is most welcome!
Can you share a sample file with me? A minimal case would be perfect.
Here it is:
\documentclass[12pt]{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{xr-hyper}
\usepackage[top=1in, bottom = 1in,right=1in, left = 0.75in]{geometry}
\usepackage{hyperref}
\newcommand\hyeqref[1]{\hyperref[#1]{\eqref{#1}}}
\newcommand\hyref[1]{\hyperref[#1]{\ref{#1}}}
%\newcommand\hyeqref[1]{\eqref{#1}}
%\newcommand\hyref[1]{\ref{#1}}
\begin{document}
\title{Some title}
\date{\today}
\maketitle
\section{First section} \label{sec:1}
This is Eq. \eqref{eq:1}:
\begin{align}
x=y+z \label{eq:1}
\end{align}
\section{Second section} \label{sec:2}
This is Eq. \eqref{eq:2}:
\begin{align}
a=b*c \label{eq:2}
\end{align}
Go back to \hyeqref{eq:1}. Go back to Sec. \hyref{sec:1}.
\end{document}
If I comment out the “\usepackage{hyperref}” and the first two “\newcommand” lines, and uncomment the second two, then it works. Otherwise it doesn’t compile.
Thanks, it did not compile here either. Will look into it!
\documentclass[12pt]{article}
%%%
\usepackage{pdfpages}
\usepackage{times}
\usepackage{etoolbox}
\usepackage{fancyhdr}
\usepackage[sort&compress]{natbib}
\usepackage{ulem}
\normalem
\usepackage{psfrag}
\usepackage{graphics}
\usepackage{epsfig}
\usepackage{wrapfig}
\usepackage{shadow}
\usepackage{color}
\usepackage{dcolumn}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\special{papersize=8.5in,11in}
\setlength{\textwidth}{6.5in}
\setlength{\textheight}{9.0in}
\setlength{\oddsidemargin}{0.0cm}
\setlength{\evensidemargin}{0.0cm}
\setlength{\topmargin}{-0.5in}
\setlength{\headheight}{0.2in}
\setlength{\headsep}{0.3in}
\setlength{\footskip}{0.5in}
\newcommand{\sideheader}[1]{\noindent \uline{\emph{#1:}}\hspace*{2ex}}
\newcommand{\shorttitle}{Dissipation of Magnetofluid Turbulence: M.L. Goldstein}
\definecolor{grey}{gray}{0.7}
\lhead[\it \shorttitle ]{\it \shorttitle}
\chead[]{}
\rhead[\thepage]{\thepage}
\lfoot[]{}
\rfoot[]{}
\fancypagestyle{simple}{ \lhead[]{} \rhead[]{} \renewcommand\headrule{ }}
\pagestyle{fancy}
\begin{document}
\thispagestyle{simple}
\begin{center} \vspace*{-0.5in}
{\large \bf An Investigation} \\[2ex]
\end{center}
\tableofcontents
\clearpage
\pagenumbering{arabic}
\addtocontents{toc}{\vspace*{-28pt}} % Tighten spacing in Table of Contents
\addcontentsline{toc}{part}{\normalsize \emph{Scientific/Technical/Management}}
{\Large \noindent \emph{Scientific/Technical/Management}} \\[-4ex]
\addtocontents{toc}{\vspace*{-3pt}} % Tighten spacing in Table of Contents
\section{Executive Summary}
{\noindent \bf The Dissipation of Solar Wind Turbulence.\hspace{1.5ex}}
The motivation of this proposal is
\end{document}
It generated a “atbegshi.sty” not found error. This file is not included on the online package repository, so the auto downloader didn’t find it there. Will fix it in next update.
I got past the .sty files not being found, but now the log complains that there’s no ‘\begin {document}’ !? Since there IS a \begin{document} something else is going on. I tried deleting the .aux file and any others that were copied over from my Mac, but that has not helped.
How did you get past that? I am very curious about your tex file.
Ok, so I manually put a bunch of sty files that the Log required, namely ltxcmds, pdftexcmdfs, infwarerr, kvsetkeys, etexcmds, pdfescape. Once I put all though in TeXinput it stopped complaining about missing sty files. But now I get another error
! Undefined control sequence.
l.327 \ltx@onelevel@sanitize
\KVO@true
?
! Emergency stop.
l.327 \ltx@onelevel@sanitize
? \KVO@true
I have no idea what this one is about…
The error was actually inside ltxcmds not my own file. So I downloaded another ltxcmds.sty file (second link that comes up in Google), and I didn’t get that error anymore. It asked me for intcalc.sty, I added that too, and then it asked me to get
bitset.sty.
Now here’s a dead-end cause I can’t find that file online… great!
I’m still in the process of testing the app, I just tried it on a pretty long file with quite a lot of packages, and I’m impressed!! Also love the Dropbox synching, that’s such an awesome feature!
Just one thing though. While all other packages worked great, “hyperref” didn’t (it doesn’t compile if I try to include it). I did set “Sync texmf-local” and “Auto download” to ON, but no use. Is there any way I could get this to work?
Thanks a lot!!
Amazing app, I love it!! Just one thing, would it be possible to include html output as well in the near future? Specifically, I’m talking about mk4ht, which for Mac OS comes automatically with MacTeX.
http://www.access2science.com/latex/tutorial_txht.xhtml
It’d be really sweet because that allows you to create html pages with nicely rendered math and figures directly from a tex file. Thanks!!
Speaking of HTML output, have you used MathJax? It can produce great math output.
Yes, it does, but I still need to be able to convert tex files into html. By which I really mean entire files, with sections, figures, equations, figure and equation labels, citations, and so on, not just embed some math equations in an already-made html file…
Hi, this is a great app!! I use it daily for my scientific work! 5 stars’s worth! And the new automatic package installation works great!
But there are 2 problems for me:
- the compiler does not hyphenate! All PDF output I am getting from all my tex files is un-hyphenated — which sometimes causes lines to go over the margin in the PDF, not very nice …
when I compile the same tex files on a Mac or PC system, or in Texpad for iOS (which I am not that happy with for other reasons), the output is hyphenated. Please correct this – unhyphenated PDF output really makes the PDF less useful, because I always have to recompile on a regular system!
- if I include the command:
\usepackage[T1]{fontenc}
in the tex file head, then compiling the document the relevant packages are automatically installed. But the PDF-output is white whereever the main text is – only the equation environments appear in the PDF … please help?
Thanks a lot for your help!
Is beamer package supported? Thanks in advance.
Currently not supported.
Getting better and better.
Now, if only WebDav sync was supported, rather than (or, in addition to) DropBox, it would be worth serious usage for those among us not of trusting nature….
Pretty-please?
I was really hoping to be able to edit my transfer. I can edit but not compile
Greetings;
Just got your app – love the possibilities.
Trying to get the document class tufte-latex working but not having much success. I’m using it for a project. Any pointers to proper installation? Tried putting it in the DropBox local folder, and have the auto download turned out. (BTW I have it working fine in TexShop).
I tried to get the tufte stuff to work as well (see my 2013/03/04 at 1:54 AM comment). It ultimately relies on etex which is not supported in TeX Writer. Glad to see I am not solo in this problem. Maybe if we make a bit of noise…
Great app, except Dropbox syncing is not working. To be specific, the files are initially synced to Dropbox, but later changes to the same files are not synced. What am I doing wrong? So far I have had to rename my files to get the sync going. Thanks!
Open the file list and pull down the list usually will force a sync.
Fantastic app. Your work finally makes my iPad a real option for getting my work done. I have run into a problem that goes beyond my limited TeX knowledge.
When loading the etex.sty package, a requirement for xifthen, the package fails to load with the error “This package ay only be run using an etex in extended mode. Are you able to give me some pointers on resolving this?
xifthen is ultimately a requirement for the tufte-handout class which generates stunning documents in the style of Edward Tufte’s books.
etex is not yet supported.
When loading pslatex.sty, the app reported missing font error
! Font OT1/ptm/m/n/10=ptmr7t at 10.0pt not loadable: Metric (TFM) file not found
Please advice
Great app, thanks!
I just want to inform you that the package ‘mathdesign’ is downloaded but do not work
(try to add \usepackage[utopia]{mathdesign} ) to the readme.txt and you can see that the output is white.
Anyway you did a pretty good job. 5 stars app for sure!
Thanks for the great app. Works as a charm. Just a small suggestion: please consider using a different coloring of warnings in the log (and the log button), just as you do it with errors. That would allow warnings to be easily noticed.
Impressed by editing interface of this app. By the way…
Does this app support virtual font (*.vf)? At a first glance, it does not seem so.
As you know, virtual font can indicate two or more (real) fonts.
However, it seems that *.map file can indicate only one ttf file…
Good catch. It doesn’t support vf right now.
This is a wonderful application !
Great job !
Thank you very much.
in some documents there are just empty pages…
Is this problem only happening in updated version? Usually it is because of missing fonts.
In the Old Version it worked. I just updated
This is my Code:
\documentclass{article}
%\usepackage [T1] {fontenc}
%\usepackage [utf8] {inputenc}
\usepackage [ngerman] {babel}
\usepackage {marvosym}
%\DeclareUnicodeCharacter{20AC}{\EUR}
\usepackage{lmodern}
\usepackage{parskip}
%\usepackage{pifont}
%\usepackage{yfonts}
\usepackage{calligra}
\usepackage{enumerate}
\usepackage{array}
%eigene Befehle
\newcommand{\zwei}[2]{\begin{tabular}{|c|c|}\firsthline
\textbf{#1} & \textit{#2} \\\lasthline
\end{tabular}
}
%Dokument
\begin{document}
\zwei{Adam}{Eva}
\end{document}
And this is what i get:
https://www.dropbox.com/s/s2rbvdr7dq7l3y9/Foto%2025.01.13%2011%2050%2032.png
On pc with Miktex and Texmaker it works….
Thanks for the new update!!
Everything is great. Still, somehow, I can’t manage to add a new command to the command bar. I manage to define it, call it from a key by customizing the keyboard, but not to type it in the command line. Redefining a default command does work, but the name has to remain the same. “Interactive” does not add new commands to me.
Thanks
Regards
Hi, Gianluca
Could you paste your scripts here? I would like to see if there is anything wrong.
This is twinit.l
(set-font “Helvetica-Light” 20.0)
;;(set-keys-1 “$” “\\” “{” “}” “_” “^” “+” “=” “&” “-” “%”)
;;(set-keys-2 “sf:(sansserif)” “al:(begin{} \”align\”)” “ℝ:(mathbb \”R\”)” “ℂ:(mathbb \”C\”)” “∂:(partial)” “∀:(forall)” “⇒:(implica)” “⇔:(biimplica)” “(” “)” “[" "]” “bf:(mathbf)” “it:(begin{} \”itemize\”)”)
(set-keys-2 “$” “\\” “{” “}” “_” “^” “+” “=” “*” “&” “(” “)” “[" "]“)
(set-keys-1 “∨:(lor)” “∧:(land)” “∀:(forall)” “∃:(exists)” “∈:(in)” “⊃:(supset)” “⇒:(implica)”"⇔:(biimplica)” “∅:(empty)” “sf:(sansserif)” “%”)
(define (empty)
(insert “\\emptyset”)
)
(define (in)
(insert “\\in”)
)
(define (supset)
(insert “\\supset”)
)
(define (land)
(insert “\\land”)
)
(define (lor)
(insert “\\lor”)
)
(define (exists)
(insert “\\exists”)
)
(define (implica)
(insert “\\Longrightarrow”)
)
(define (sansserif)
(insert “\\text{“)
(insert “\\sffamily{ }}”)
(goto-char (- (point) 2)))
(define (biimplica)
(insert “\\Longleftrightarrow”)
)
(define (mathbf)
(insert “\\mathbf{}”)
(goto-char (- (point) 1)))
(define (mathbb letter)
(insert “\\mathbb{“)
(insert letter)
(insert “}”))
(define (partial)
(insert “\\partial”)
)
(define (forall)
(insert “\\forall”)
)
(interactive ’empty)
(interactive ’supset)
(interactive ’in)
(interactive ’land)
(interactive ’lor)
(interactive ’exists)
(interactive ’sansserif)
(interactive ’implica)
(interactive ’biimplica)
(interactive ’forall)
(interactive ’partial)
(interactive ’mathbf)
(interactive ’mathbb “Name:%s”)
You don’t need to “interactive” all the commands.
Any way your scripts works great here. So I guess you want to show mathbb on the command bar to take the place of built-in “goto-line” or “delete-line”. You can’t do that right now, but you only need type in the first character “m”, then your mathbb command will be shown.
Actually, that does not happen. Nothing happens when I type “m”.
I am seeing this:
https://dl.dropbox.com/u/18357422/texwriter/iOS%20Simulator%20Screen%20shot%20Jan%2018%2C%202013%207.58.33%20PM.png
How about restarting tex writer?
For some reason it wouldn’t let me reply under your last comment. So.. restarting didn’t work, so I tried the extreme way, I saved all my work on the PC, uninstalled TeX Writer, reinstalled it, and just pasted twilit.l in the app. Still not working.
Ps: thanks for the immediate replies, you’re awesome!
This file works for me:
https://dl.dropbox.com/u/18357422/texwriter/twinit.l
Please make sure you restart the app.
Somehow, the second time I reinstalled the app, it worked!! Thanks a lot, I owe you a six star review on the app store! Keep on updating and perfecting this great app and I’ll continue to spread the word out to all LaTeX users I know!
Best regards
I agree! Great solution!
Great, thanks for that solution!