MacTeX -aux-directory = DIR (Suomi)

i ”m käyttämällä Textmate- ja MacTeX-tiedostoja (texLive 1.12). MiKTeX: ssä (Windows) on mahdollisuus käyttää komentoa -aux-directory=DIR ja -output-directory=DIR. Lähtöosa toimii TeXLive-ohjelmassa, mutta PDF-tiedosto ei avaudu automaattisesti, ja tiedostossa on edelleen aux-tiedosto pääkansio ja myös .fdb_latexmk -tiedosto.

Tietääkö kukaan, onko TeXLivelle -aux-directory=DIR -komento ?

Kommentit

  • Kiertotapa: Käytä -output-directory = AUX_DIR ja määritä pehmeä / kova linkki kohdasta AUX_DIR / out.pdf – OUT_DIR / out. päivitetty.
  • @Sameer En ymmärtänyt " perustanut pehmeän / kovan linkin kohteesta AUX_DIR / out.pdf – OUT_DIR / out.pdf. (ln [ -s] AUX_DIR / lähtö .pdf OUT_DIR / out.pdf). " Voisitteko kertoa sen minulle aloittelijalle, kuten minä? Käytän TeX-Studiota Texliven kanssa. Kiitos!
  • On annettu hyvä selitys, miksi aux-hakemistolla on joskus järkevää, katso täältä: tex.stackexchange.com/a/445301/ 4736 . Lyhyesti sanottuna: PDF siirtyy palvelimelle, aux-tiedostot ovat paikallisia.
  • Liittyvät tex.stackexchange.com/q/420573/35864

vastaus

Lyhyt vastaus: ”ei”. -aux-directory -vaihtoehto on MiKTeX-kohtainen, kuten näet tekemällä esimerkiksi pdftex --help TeX Liven kanssa:

 Usage: pdftex [OPTION]... [TEXNAME[.tex]] [COMMANDS] or: pdftex [OPTION]... \FIRST-LINE or: pdftex [OPTION]... &FMT ARGS Run pdfTeX on TEXNAME, usually creating TEXNAME.pdf. Any remaining COMMANDS are processed as pdfTeX input, after TEXNAME is read. If the first line of TEXNAME is %&FMT, and FMT is an existing .fmt file, use it. Else use `NAME.fmt", where NAME is the program invocation name, most commonly `pdftex". Alternatively, if the first non-option argument begins with a backslash, interpret all non-option arguments as a line of pdfTeX input. Alternatively, if the first non-option argument begins with a &, the next word is taken as the FMT to read, overriding all else. Any remaining arguments are processed as above. If no arguments or options are specified, prompt for input. -draftmode switch on draft mode (generates no output PDF) -enc enable encTeX extensions such as \mubyte -etex enable e-TeX extensions [-no]-file-line-error disable/enable file:line:error style messages -fmt=FMTNAME use FMTNAME instead of program name or a %& line -halt-on-error stop processing at the first error -ini be pdfinitex, for dumping formats; this is implicitly true if the program name is `pdfinitex" -interaction=STRING set interaction mode (STRING=batchmode/nonstopmode/ scrollmode/errorstopmode) -ipc send DVI output to a socket as well as the usual output file -ipc-start as -ipc, and also start the server at the other end -jobname=STRING set the job name to STRING -kpathsea-debug=NUMBER set path searching debugging flags according to the bits of NUMBER [-no]-mktex=FMT disable/enable mktexFMT generation (FMT=tex/tfm/pk) -mltex enable MLTeX extensions such as \charsubdef -output-comment=STRING use STRING for DVI file comment instead of date (no effect for PDF) -output-directory=DIR use existing DIR as the directory to write files in -output-format=FORMAT use FORMAT for job output; FORMAT is `dvi" or `pdf" [-no]-parse-first-line disable/enable parsing of first line of input file -progname=STRING set program (and fmt) name to STRING -recorder enable filename recorder [-no]-shell-escape disable/enable \write18{SHELL COMMAND} -shell-restricted enable restricted \write18 -src-specials insert source specials into the DVI file -src-specials=WHERE insert source specials in certain places of the DVI file. WHERE is a comma-separated value list: cr display hbox math par parend vbox -synctex=NUMBER generate SyncTeX data for previewers if nonzero -translate-file=TCXNAME use the TCX file TCXNAME -8bit make all characters printable by default -help display this help and exit -version output version information and exit Email bug reports to [email protected]. 

Huomaa, että -output-directory on, mutta ei -aux-directory, mikä voidaan tarkistaa pikatesti (koska dokumentoitu ja todellinen käyttäytyminen voivat olla erilaisia!).

Kommentit

  • Tietääkö kukaan, miksi MacTeX on tällainen? Onko mahdollisuutta muutokseen?
  • @Tom Esität väärän kysymyksen 🙂 TeX Live -palvelussa ei ole koskaan ollut asetusta -aux-directory, se ' s jotain, jonka Christian Schenk lisäsi MiKTeX: ään. Joten yhtä pätevä kysymys on ' Miksi MiKTeX tekee tämän? '!
  • miksi he tekevät tämän? ajatus lähtöhakemistosta on riittävän yleinen, jotta se voisi olla ja sen pitäisi olla vakioasetus

Vastaus

Hieman samalla tavalla kuin mitä Sameer kommentoi, tämä toimii minulle TeXstudion avulla.

Muokkaa pdflatex -komentoa (löytyy kohdasta Preferences » Commands) seuraavalla tavalla:

sh -c "mkdir -p .temp & pdflatex -synctex=1 -interaction=nonstopmode -output-directory=.temp %.tex && cp .temp/%.pdf %.pdf" 

Tämä luo piilotetun hakemiston .temp (jos ei siellä jo) aputiedostojen tallentamiseksi pitämällä samalla pdf-tulosteet samassa hakemistossa. Voit muokata yllä olevaa mieltymystesi mukaan ja hankkia haluamasi hakemistorakenteen.

Kommentit

  • Yritin tätä, mutta se ei ' t toimi – sanoo Could not start Build & View:PdfLaTeX:...

Vastaa

Sähköpostiosoitettasi ei julkaista. Pakolliset kentät on merkitty *