Indexing terms being used in cross-referencing The 2019 Stack Overflow Developer Survey...

Kerning for subscripts of sigma?

Finding the area between two curves with Integrate

The phrase "to the numbers born"?

How come people say “Would of”?

Why is the maximum length of OpenWrt’s root password 8 characters?

Is Cinnamon a desktop environment or a window manager? (Or both?)

Can an undergraduate be advised by a professor who is very far away?

How do you keep chess fun when your opponent constantly beats you?

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

Can withdrawing asylum be illegal?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Why couldn't they take pictures of a closer black hole?

How to charge AirPods to keep battery healthy?

Can we generate random numbers using irrational numbers like π and e?

If I score a critical hit on an 18 or higher, what are my chances of getting a critical hit if I roll 3d20?

Why doesn't UInt have a toDouble()?

Loose spokes after only a few rides

Button changing its text & action. Good or terrible?

What is the meaning of Triage in Cybersec world?

What do these terms in Caesar's Gallic Wars mean?

Are there any other methods to apply to solving simultaneous equations?

A word that means fill it to the required quantity

Match Roman Numerals

Dropping list elements from nested list after evaluation



Indexing terms being used in cross-referencing



The 2019 Stack Overflow Developer Survey Results Are InCross-referencing numeric values and text from later section to executive summary of a latex document












0















This is a follow-up question of my previous one:
Cross-referencing numeric values and text from later section to executive summary of a latex document



I have finished making my report and now my boss asks to insert an index into the document.I have made a sample as below (the tex file is created using Rmarkdown and pandoc, so it may have some code not needed but incorporated)



documentclass[]{article}
usepackage{lmodern}
usepackage{amssymb,amsmath}
usepackage{ifxetex,ifluatex}
usepackage{fixltx2e} % provides textsubscript
ifnum 0ifxetex 1fiifluatex 1fi=0 % if pdftex
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
else % if luatex or xelatex
ifxetex
usepackage{mathspec}
else
usepackage{fontspec}
fi
defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
fi
% use upquote if available, for straight quotes in verbatim environments
IfFileExists{upquote.sty}{usepackage{upquote}}{}
% use microtype if available
IfFileExists{microtype.sty}{%
usepackage{microtype}
UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
usepackage[margin=1in]{geometry}
usepackage{hyperref}
hypersetup{unicode=true,
pdftitle={Testing},
pdfborder={0 0 0},
breaklinks=true}
urlstyle{same} % don't use monospace font for urls
usepackage{graphicx,grffile}
makeatletter
defmaxwidth{ifdimGin@nat@width>linewidthlinewidthelseGin@nat@widthfi}
defmaxheight{ifdimGin@nat@height>textheighttextheightelseGin@nat@heightfi}
makeatother
% Scale images if necessary, so that they will not overflow the page
% margins by default, and it is still possible to overwrite the defaults
% using explicit options in includegraphics[width, height, ...]{}
setkeys{Gin}{width=maxwidth,height=maxheight,keepaspectratio}
IfFileExists{parskip.sty}{%
usepackage{parskip}
}{% else
setlength{parindent}{0pt}
setlength{parskip}{6pt plus 2pt minus 1pt}
}
setlength{emergencystretch}{3em} % prevent overfull lines
providecommand{tightlist}{%
setlength{itemsep}{0pt}setlength{parskip}{0pt}}
setcounter{secnumdepth}{0}
% Redefines (sub)paragraphs to behave more like sections
ifxparagraphundefinedelse
letoldparagraphparagraph
renewcommand{paragraph}[1]{oldparagraph{#1}mbox{}}
fi
ifxsubparagraphundefinedelse
letoldsubparagraphsubparagraph
renewcommand{subparagraph}[1]{oldsubparagraph{#1}mbox{}}
fi

%%% Use protect on footnotes to avoid problems with footnotes in titles
letrmarkdownfootnotefootnote%
deffootnote{protectrmarkdownfootnote}

%%% Change title format to be more compact
usepackage{titling}

% Create subtitle command for use in maketitle
newcommand{subtitle}[1]{
posttitle{
begin{center}large#1end{center}
}
}

setlength{droptitle}{-2em}

title{Testing}
pretitle{vspace{droptitle}centeringhuge}
posttitle{par}
author{}
preauthor{}postauthor{}
date{}
predate{}postdate{}

usepackage{imakeidx}
usepackage{mfirstuc}
makeindex[intoc,columns=1]
makeatletter
newcommandstorehide[2]{{def@currentlabel{#1}label{#2}}}

begin{document}
maketitle

setosaindex{Flower!setosa}

newcommandabidx[1]{#1index{Flower!capitalisewords{#1}}}

abidx{setosa}

abidx{setosa}, abidx{versicolor}, abidx{virginica}

begin{enumerate}
deflabelenumi{arabic{enumi}.}
item
This is a ref*{label01}
item
Types of flowers: ref*{label02}
item
Types of flowers: ref*{label03}
end{enumerate}

storehide{test}{label01}

storehide{SETOSA, VERSICOLOR AND VIRGINICA}{label02}

storehide{abidx{setosa}, abidx{versicolor}, abidx{virginica}}{label03}

newpage
printindex


end{document}


I create a list of terms and cross-referenced them in other part of the document, what I want to the index each and every one of the terms so that they can be listed in the index part (i.e. cross-referencing label03), but it is not working.



What have I done wrong? Thanks!









share



























    0















    This is a follow-up question of my previous one:
    Cross-referencing numeric values and text from later section to executive summary of a latex document



    I have finished making my report and now my boss asks to insert an index into the document.I have made a sample as below (the tex file is created using Rmarkdown and pandoc, so it may have some code not needed but incorporated)



    documentclass[]{article}
    usepackage{lmodern}
    usepackage{amssymb,amsmath}
    usepackage{ifxetex,ifluatex}
    usepackage{fixltx2e} % provides textsubscript
    ifnum 0ifxetex 1fiifluatex 1fi=0 % if pdftex
    usepackage[T1]{fontenc}
    usepackage[utf8]{inputenc}
    else % if luatex or xelatex
    ifxetex
    usepackage{mathspec}
    else
    usepackage{fontspec}
    fi
    defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
    fi
    % use upquote if available, for straight quotes in verbatim environments
    IfFileExists{upquote.sty}{usepackage{upquote}}{}
    % use microtype if available
    IfFileExists{microtype.sty}{%
    usepackage{microtype}
    UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
    }{}
    usepackage[margin=1in]{geometry}
    usepackage{hyperref}
    hypersetup{unicode=true,
    pdftitle={Testing},
    pdfborder={0 0 0},
    breaklinks=true}
    urlstyle{same} % don't use monospace font for urls
    usepackage{graphicx,grffile}
    makeatletter
    defmaxwidth{ifdimGin@nat@width>linewidthlinewidthelseGin@nat@widthfi}
    defmaxheight{ifdimGin@nat@height>textheighttextheightelseGin@nat@heightfi}
    makeatother
    % Scale images if necessary, so that they will not overflow the page
    % margins by default, and it is still possible to overwrite the defaults
    % using explicit options in includegraphics[width, height, ...]{}
    setkeys{Gin}{width=maxwidth,height=maxheight,keepaspectratio}
    IfFileExists{parskip.sty}{%
    usepackage{parskip}
    }{% else
    setlength{parindent}{0pt}
    setlength{parskip}{6pt plus 2pt minus 1pt}
    }
    setlength{emergencystretch}{3em} % prevent overfull lines
    providecommand{tightlist}{%
    setlength{itemsep}{0pt}setlength{parskip}{0pt}}
    setcounter{secnumdepth}{0}
    % Redefines (sub)paragraphs to behave more like sections
    ifxparagraphundefinedelse
    letoldparagraphparagraph
    renewcommand{paragraph}[1]{oldparagraph{#1}mbox{}}
    fi
    ifxsubparagraphundefinedelse
    letoldsubparagraphsubparagraph
    renewcommand{subparagraph}[1]{oldsubparagraph{#1}mbox{}}
    fi

    %%% Use protect on footnotes to avoid problems with footnotes in titles
    letrmarkdownfootnotefootnote%
    deffootnote{protectrmarkdownfootnote}

    %%% Change title format to be more compact
    usepackage{titling}

    % Create subtitle command for use in maketitle
    newcommand{subtitle}[1]{
    posttitle{
    begin{center}large#1end{center}
    }
    }

    setlength{droptitle}{-2em}

    title{Testing}
    pretitle{vspace{droptitle}centeringhuge}
    posttitle{par}
    author{}
    preauthor{}postauthor{}
    date{}
    predate{}postdate{}

    usepackage{imakeidx}
    usepackage{mfirstuc}
    makeindex[intoc,columns=1]
    makeatletter
    newcommandstorehide[2]{{def@currentlabel{#1}label{#2}}}

    begin{document}
    maketitle

    setosaindex{Flower!setosa}

    newcommandabidx[1]{#1index{Flower!capitalisewords{#1}}}

    abidx{setosa}

    abidx{setosa}, abidx{versicolor}, abidx{virginica}

    begin{enumerate}
    deflabelenumi{arabic{enumi}.}
    item
    This is a ref*{label01}
    item
    Types of flowers: ref*{label02}
    item
    Types of flowers: ref*{label03}
    end{enumerate}

    storehide{test}{label01}

    storehide{SETOSA, VERSICOLOR AND VIRGINICA}{label02}

    storehide{abidx{setosa}, abidx{versicolor}, abidx{virginica}}{label03}

    newpage
    printindex


    end{document}


    I create a list of terms and cross-referenced them in other part of the document, what I want to the index each and every one of the terms so that they can be listed in the index part (i.e. cross-referencing label03), but it is not working.



    What have I done wrong? Thanks!









    share

























      0












      0








      0








      This is a follow-up question of my previous one:
      Cross-referencing numeric values and text from later section to executive summary of a latex document



      I have finished making my report and now my boss asks to insert an index into the document.I have made a sample as below (the tex file is created using Rmarkdown and pandoc, so it may have some code not needed but incorporated)



      documentclass[]{article}
      usepackage{lmodern}
      usepackage{amssymb,amsmath}
      usepackage{ifxetex,ifluatex}
      usepackage{fixltx2e} % provides textsubscript
      ifnum 0ifxetex 1fiifluatex 1fi=0 % if pdftex
      usepackage[T1]{fontenc}
      usepackage[utf8]{inputenc}
      else % if luatex or xelatex
      ifxetex
      usepackage{mathspec}
      else
      usepackage{fontspec}
      fi
      defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
      fi
      % use upquote if available, for straight quotes in verbatim environments
      IfFileExists{upquote.sty}{usepackage{upquote}}{}
      % use microtype if available
      IfFileExists{microtype.sty}{%
      usepackage{microtype}
      UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
      }{}
      usepackage[margin=1in]{geometry}
      usepackage{hyperref}
      hypersetup{unicode=true,
      pdftitle={Testing},
      pdfborder={0 0 0},
      breaklinks=true}
      urlstyle{same} % don't use monospace font for urls
      usepackage{graphicx,grffile}
      makeatletter
      defmaxwidth{ifdimGin@nat@width>linewidthlinewidthelseGin@nat@widthfi}
      defmaxheight{ifdimGin@nat@height>textheighttextheightelseGin@nat@heightfi}
      makeatother
      % Scale images if necessary, so that they will not overflow the page
      % margins by default, and it is still possible to overwrite the defaults
      % using explicit options in includegraphics[width, height, ...]{}
      setkeys{Gin}{width=maxwidth,height=maxheight,keepaspectratio}
      IfFileExists{parskip.sty}{%
      usepackage{parskip}
      }{% else
      setlength{parindent}{0pt}
      setlength{parskip}{6pt plus 2pt minus 1pt}
      }
      setlength{emergencystretch}{3em} % prevent overfull lines
      providecommand{tightlist}{%
      setlength{itemsep}{0pt}setlength{parskip}{0pt}}
      setcounter{secnumdepth}{0}
      % Redefines (sub)paragraphs to behave more like sections
      ifxparagraphundefinedelse
      letoldparagraphparagraph
      renewcommand{paragraph}[1]{oldparagraph{#1}mbox{}}
      fi
      ifxsubparagraphundefinedelse
      letoldsubparagraphsubparagraph
      renewcommand{subparagraph}[1]{oldsubparagraph{#1}mbox{}}
      fi

      %%% Use protect on footnotes to avoid problems with footnotes in titles
      letrmarkdownfootnotefootnote%
      deffootnote{protectrmarkdownfootnote}

      %%% Change title format to be more compact
      usepackage{titling}

      % Create subtitle command for use in maketitle
      newcommand{subtitle}[1]{
      posttitle{
      begin{center}large#1end{center}
      }
      }

      setlength{droptitle}{-2em}

      title{Testing}
      pretitle{vspace{droptitle}centeringhuge}
      posttitle{par}
      author{}
      preauthor{}postauthor{}
      date{}
      predate{}postdate{}

      usepackage{imakeidx}
      usepackage{mfirstuc}
      makeindex[intoc,columns=1]
      makeatletter
      newcommandstorehide[2]{{def@currentlabel{#1}label{#2}}}

      begin{document}
      maketitle

      setosaindex{Flower!setosa}

      newcommandabidx[1]{#1index{Flower!capitalisewords{#1}}}

      abidx{setosa}

      abidx{setosa}, abidx{versicolor}, abidx{virginica}

      begin{enumerate}
      deflabelenumi{arabic{enumi}.}
      item
      This is a ref*{label01}
      item
      Types of flowers: ref*{label02}
      item
      Types of flowers: ref*{label03}
      end{enumerate}

      storehide{test}{label01}

      storehide{SETOSA, VERSICOLOR AND VIRGINICA}{label02}

      storehide{abidx{setosa}, abidx{versicolor}, abidx{virginica}}{label03}

      newpage
      printindex


      end{document}


      I create a list of terms and cross-referenced them in other part of the document, what I want to the index each and every one of the terms so that they can be listed in the index part (i.e. cross-referencing label03), but it is not working.



      What have I done wrong? Thanks!









      share














      This is a follow-up question of my previous one:
      Cross-referencing numeric values and text from later section to executive summary of a latex document



      I have finished making my report and now my boss asks to insert an index into the document.I have made a sample as below (the tex file is created using Rmarkdown and pandoc, so it may have some code not needed but incorporated)



      documentclass[]{article}
      usepackage{lmodern}
      usepackage{amssymb,amsmath}
      usepackage{ifxetex,ifluatex}
      usepackage{fixltx2e} % provides textsubscript
      ifnum 0ifxetex 1fiifluatex 1fi=0 % if pdftex
      usepackage[T1]{fontenc}
      usepackage[utf8]{inputenc}
      else % if luatex or xelatex
      ifxetex
      usepackage{mathspec}
      else
      usepackage{fontspec}
      fi
      defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
      fi
      % use upquote if available, for straight quotes in verbatim environments
      IfFileExists{upquote.sty}{usepackage{upquote}}{}
      % use microtype if available
      IfFileExists{microtype.sty}{%
      usepackage{microtype}
      UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
      }{}
      usepackage[margin=1in]{geometry}
      usepackage{hyperref}
      hypersetup{unicode=true,
      pdftitle={Testing},
      pdfborder={0 0 0},
      breaklinks=true}
      urlstyle{same} % don't use monospace font for urls
      usepackage{graphicx,grffile}
      makeatletter
      defmaxwidth{ifdimGin@nat@width>linewidthlinewidthelseGin@nat@widthfi}
      defmaxheight{ifdimGin@nat@height>textheighttextheightelseGin@nat@heightfi}
      makeatother
      % Scale images if necessary, so that they will not overflow the page
      % margins by default, and it is still possible to overwrite the defaults
      % using explicit options in includegraphics[width, height, ...]{}
      setkeys{Gin}{width=maxwidth,height=maxheight,keepaspectratio}
      IfFileExists{parskip.sty}{%
      usepackage{parskip}
      }{% else
      setlength{parindent}{0pt}
      setlength{parskip}{6pt plus 2pt minus 1pt}
      }
      setlength{emergencystretch}{3em} % prevent overfull lines
      providecommand{tightlist}{%
      setlength{itemsep}{0pt}setlength{parskip}{0pt}}
      setcounter{secnumdepth}{0}
      % Redefines (sub)paragraphs to behave more like sections
      ifxparagraphundefinedelse
      letoldparagraphparagraph
      renewcommand{paragraph}[1]{oldparagraph{#1}mbox{}}
      fi
      ifxsubparagraphundefinedelse
      letoldsubparagraphsubparagraph
      renewcommand{subparagraph}[1]{oldsubparagraph{#1}mbox{}}
      fi

      %%% Use protect on footnotes to avoid problems with footnotes in titles
      letrmarkdownfootnotefootnote%
      deffootnote{protectrmarkdownfootnote}

      %%% Change title format to be more compact
      usepackage{titling}

      % Create subtitle command for use in maketitle
      newcommand{subtitle}[1]{
      posttitle{
      begin{center}large#1end{center}
      }
      }

      setlength{droptitle}{-2em}

      title{Testing}
      pretitle{vspace{droptitle}centeringhuge}
      posttitle{par}
      author{}
      preauthor{}postauthor{}
      date{}
      predate{}postdate{}

      usepackage{imakeidx}
      usepackage{mfirstuc}
      makeindex[intoc,columns=1]
      makeatletter
      newcommandstorehide[2]{{def@currentlabel{#1}label{#2}}}

      begin{document}
      maketitle

      setosaindex{Flower!setosa}

      newcommandabidx[1]{#1index{Flower!capitalisewords{#1}}}

      abidx{setosa}

      abidx{setosa}, abidx{versicolor}, abidx{virginica}

      begin{enumerate}
      deflabelenumi{arabic{enumi}.}
      item
      This is a ref*{label01}
      item
      Types of flowers: ref*{label02}
      item
      Types of flowers: ref*{label03}
      end{enumerate}

      storehide{test}{label01}

      storehide{SETOSA, VERSICOLOR AND VIRGINICA}{label02}

      storehide{abidx{setosa}, abidx{versicolor}, abidx{virginica}}{label03}

      newpage
      printindex


      end{document}


      I create a list of terms and cross-referenced them in other part of the document, what I want to the index each and every one of the terms so that they can be listed in the index part (i.e. cross-referencing label03), but it is not working.



      What have I done wrong? Thanks!







      cross-referencing indexing r markdown





      share












      share










      share



      share










      asked 1 min ago









      lokheartlokheart

      1355




      1355






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484433%2findexing-terms-being-used-in-cross-referencing%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f484433%2findexing-terms-being-used-in-cross-referencing%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

          Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

          How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...