LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and Acronymsproblems in changing security openout_any = p of file texmf.cnf in terminal in order to use apacite author index Topic is solved

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
vanessaca
Posts: 5
Joined: Thu Sep 06, 2018 10:45 am

problems in changing security openout_any = p of file texmf.cnf in terminal in order to use apacite author index

Postby vanessaca » Fri Sep 07, 2018 12:37 pm

Hi Latex - community,
I'm super new to the programm and struggel now since a while to set up a template for my masterthesis.
I got the MacTex Version from 2016 since I only have Mac OS X Snow Leopard on my computer. I got the package apacite, which shall have the nice feature of an author index. However I am not able to print the index with this setup:
  1. \documentclass[12pt, oneside]{article}
  2. \usepackage{geometry}
  3. \geometry{a4paper}
  4. \usepackage{graphicx}
  5.  
  6. \usepackage{makeidx}
  7. \usepackage[emindex]{apacite}
  8. \makeindex
  9. \usepackage{amssymb}
  10.  
  11.  
  12. \title{Citation Tests}
  13. \author{Vanessa}
  14. \date{September 6, 2018}
  15.  
  16. \begin{document}
  17. \maketitle
  18.  
  19. bli \shortcite[p.22]{cadsby2007}
  20. bla \shortcite{abeler2011}
  21. while \citeA{yellen2011} is not able to support x
  22. if one compares however those results with the one of Abeler \citeyear<see>[p.23]{abeler2011} this does not hold
  23. \newpage
  24. \nocite{burtless1986} % do * for all
  25.  
  26. \bibliographystyle{apacite}
  27. \bibliography{/Users/vcausemann/Desktop/MAReferences}
  28.  
  29. \newpage
  30.  
  31. \printindex[autx]
  32.  
  33. \end{document}


If I run makeindex it tells me:
This is makeindex, version 2.15 [TeX Live 2016] (kpathsea + Thai support).
Scanning input file APAcitetest.idx...done (0 entries accepted, 0 rejected).
Nothing written in APAcitetest.ind.
Transcript written in APAcitetest.ilg.


Creating a normal index with \index and \printindex is not a problem.

I ran LaTex, BibTex, LaTex twice, MakeIndex and then LaTex again. As far as I figured by the given pdf of the apacite package I need to give the command makeindex -o APAcitetest.and APAcitetest.adx in the terminal (I guess). This led me to the problem of the security setting openout_any = p
The Terminal gives me:
makeindex: Not writing to /Users/vcausemann/Desktop/APAcitetest/APAcitetest.and (openout_any = p).
Can't create output index file /Users/vcausemann/Desktop/APAcitetest/APAcitetest.and.


So I tried to change the setting to openout_any = r which led me to
usr/local/texlive/2016/texmf.cnf openout_any = r
-bash: /usr/local/texlive/2016/texmf.cnf: Permission denied

So I logged in sudo nano (as well as others), but could not find the part where I could change the openout_any option. In general people wrote one should search through the pages to find it, I get however only one page looking like this:
  1. % (Public domain.)
  2. % This texmf.cnf file should contain only your personal changes from the
  3. % original texmf.cnf (for example, as chosen in the installer).
  4. %
  5. % That is, if you need to make changes to texmf.cnf, put your custom
  6. % settings in this file, which is .../texlive/YYYY/texmf.cnf, rather than
  7. % the distributed file (which is .../texlive/YYYY/texmf-dist/web2c/texmf.cnf).
  8. % And include *only* your changed values, not a copy of the whole thing!
  9. %
  10. TEXMFHOME = ~/Library/texmf
  11. TEXMFVAR = ~/Library/texlive/2016/texmf-var
  12. TEXMFCONFIG = ~/Library/texlive/2016/texmf-config
  13.  
  14.  
  15. [ Read 12 lines ]
  16. ^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
  17. ^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Text^T To Spell


And since I have no clue of programming and I am struggeling ages with this problem and started random angryly trying out different combinations, I gave up before I fuck something proper up and hope to find some help here.
Last edited by Stefan Kottwitz on Fri Sep 07, 2018 1:03 pm, edited 1 time in total.
Reason: code marked

Tags:

vanessaca
Posts: 5
Joined: Thu Sep 06, 2018 10:45 am

Postby vanessaca » Fri Sep 07, 2018 3:29 pm

I kept playing around with terminal slightly agressive ;) ...and solved my issue. I opened the distributed file .../texlive/YYYY/texmf-dist/web2c/texmf.cnf under sudo nano and there was the page where I could change openout_any = p to openout_any = a
I used this command sudo nano /usr/local/texlive/2016/texmf-dist/web2c/texmf.cnf
Furthermore did I need to change my \bibliographystyle{apacite} to \bibliographystyle{apacitex}, I tried that before but with the security of openout_any = p no changes made any difference and the problem always stayed the same.

So for anyone going crazy for days as me:
If the command makeindex -o filename.and filename.adx in terminal cannot create an open index file because of openout_any = p, give in command kpsewhich texmf.cnf which will find the file path for you. Then extent this path by /texmf-dist/web2c/texmf.cnf after the year and give in the command sudo nano followed by the extended path, search through the pages for openout_any = p and change it to openout_any = a.


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest