I often surf arXiv for new articles to read. I usually benefit doubly from this endeavour: secondly to mathematical knowledge I like to learn different LaTeX techniques which are used to typeset beautiful documents. But recently I got a hold of rather peculiar .tex file. Its origins derive from a brilliant article regarding algebraic topology which can be found here.
The whole file is way too large to be rawly posted in my comment, so I included it in my Google Drive. However I can express two of my remarks:
It seems strange to me that multiple .sty files were packed in a single .tex file, as recognised via Google Drive analysis; more accurately, it seems that 8 individual files (1 .aux, 1 .bbl, 3 .sty and 3 .tex) are somehow compressed in one .tex file. Strange.
I decided to post the beginning of the "big" .tex document for further clarity and to make the situation simpler for the community:
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{Cobordism}[2011/03/01]
\RequirePackage{tikz}
\usepackage{forarray}
\newcommand\ignore[1]{}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Variables, Variable Commands, and Styles
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% Variables %%%
\newlength{\cobordismhalfendwidth}
\newlength{\cobordismhalfendheight}
\newlength{\cobordismendwidth}
%%% New Variables %%%
\newlength{\cobheight} % Height of a pair of pants
\newlength{\cobwidth} % Width of a cylinder
\newlength{\cobgap} % Gap between adjacent cylinders
\newlength{\cupheight} % Height of a cup or cap
\newlength{\ellipseheight} % Height of a boundary ellipse
\newcommand{\ellipsewidth}{\cobwidth}
\newlength{\cobordismlinewidth} % Width of line used to draw cobordisms
\newlength{\coboffset} % cobwidth + cobgap; the horizontal offset between adjacent cylinders
\newlength{\obscurewidth}
\setlength{\obscurewidth}{4pt}
\newlength{\inseamheight}
\newlength{\selectwidth}
\setlength{\selectwidth}{1pt}
\newlength{\dashlength}
\setlength{\dashlength}{2pt}
Those of you who want to help me with my struggle can find the full file here.
The ones who took their time and opened my uploaded .tex file will probably understand the source of my confusion. My primary request is to clarify the syntax to me as much as possible. And a bonus: how can I achieve the beautiful results presented in the paper with the normal format? Thank you in advance. (Please don't mark this as off-topic; it's just a complex question.)
.texfile. Of course, you can download a copy from my Google Drive for yourself (I've provided a link) and see the situation in the upmost clarity. Edit incoming soon. – God bless Jul 27 '17 at 19:20.styand.bblfiles are so strangely "morphed" with.texpackages. If you can shine any light onto as to why such a structure even exist, I'd be very grateful. – God bless Jul 27 '17 at 19:33.texfiles though? What am I supposed to do with those? – God bless Jul 27 '17 at 19:39paperIV.texthat the two other.texfiles are input here. It's just a way of making the source of the main.texfile more tidy, by placing (most of) the preamble in separate files. – Torbjørn T. Jul 27 '17 at 19:42.styfiles somewhere where PDFLaTeX can reach them and compile my commands. But where? And furthermore, how do I compile 3.texfiles at once? – God bless Jul 27 '17 at 19:44.texat once, you just compilepaperIV.tex. That file reads the two other ones. And you don't need to move the.styfiles either, if they are placed in the same folder aspaperIV.tex, LaTeX will find them. – Torbjørn T. Jul 27 '17 at 19:46paperIV.tex. All was well (you know, the standard stuff; editor automatically installs requested packages etc.) until this error showed up:Cobordism.sty error line 4118 undefined control sequence. I suspect that the.styfile has some kind of fallacy in it (is not written correctly). Your thoughts? – God bless Jul 27 '17 at 20:16.texfile compile for you though? – God bless Jul 27 '17 at 20:23