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

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
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

Post by vanessaca »

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:

Code: Select all

\documentclass[12pt, oneside]{article}   	
\usepackage{geometry}                		
\geometry{a4paper}                   	
\usepackage{graphicx}

\usepackage{makeidx}
\usepackage[emindex]{apacite}
\makeindex
\usepackage{amssymb}


\title{Citation Tests}
\author{Vanessa}
\date{September 6, 2018}

\begin{document}
\maketitle

bli \shortcite[p.22]{cadsby2007} 
bla \shortcite{abeler2011}
while \citeA{yellen2011} is not able to support x
if one compares however those results with the one of Abeler  \citeyear<see>[p.23]{abeler2011}  this does not hold 
\newpage
\nocite{burtless1986}  % do * for all

\bibliographystyle{apacite}
\bibliography{/Users/vcausemann/Desktop/MAReferences}

\newpage

\printindex[autx] 

 \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:

Code: Select all

% (Public domain.)
% This texmf.cnf file should contain only your personal changes from the
% original texmf.cnf (for example, as chosen in the installer).
%
% That is, if you need to make changes to texmf.cnf, put your custom
% settings in this file, which is .../texlive/YYYY/texmf.cnf, rather than
% the distributed file (which is .../texlive/YYYY/texmf-dist/web2c/texmf.cnf).
% And include *only* your changed values, not a copy of the whole thing!
%
TEXMFHOME = ~/Library/texmf
TEXMFVAR = ~/Library/texlive/2016/texmf-var
TEXMFCONFIG = ~/Library/texlive/2016/texmf-config


                               [ Read 12 lines ]
^G Get Help  ^O WriteOut  ^R Read File ^Y Prev Page ^K Cut Text  ^C Cur Pos
^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.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
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

Post by vanessaca »

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.
Post Reply