In document class book, and package caption, creating index with makeidx. Index entries for the main text and for footnotes collate properly; but those for captions create their own entries.  Example: for the tag \index{New York!Custom House!\textit{Cartouche}}, text and footnotes collate properly; but used in a caption, a new entry is created at the third level, and is also out-of-alphabetic-sequence. Note: the top level, and first sub are correct; only the second sub is duplicated.  How to get the caption index entries under the same entry?
Dear all I think I have a problem with the collation of makeidx.  following some suggestions found here I have got in the text something like this  \index[p]{Plutarco!demalignitate@\textit{De Malignitate Herodoti}!00855 @855A|qt}  \index[p]{Plutarco!demalignitate@\textit{De Malignitate Herodoti}!00868 @868f-869b|nn{\thefootnote}}   the first is an \index entry in the text, the second in a footnote. My problem is that even if I put the sort also on the second level of indexing it keeps keeping them separated.  I use this package information  \usepackage[splitindex]{imakeidx} \makeindex[name=n, title=Nomi di persone e luoghi]  \makeindex[name=p, title=Passi citati nel testo] \makeindex[name=t, title=Altri testi citati] \makeindex[name=pap, title=Papiri e manoscritti citati nel testo]  \newcommand{\nn}[2]{#2 \textit{n}#1} \newcommand{\qt}[1]{\textbf{#1}}   in the .idx file I get this  \indexentry{Plutarco!demalignitate@\textit{De Malignitate Herodoti}!00855 @855A|hyperindexformat{\qt}}{8}  \indexentry{Plutarco!demalignitate@\textit  {De Malignitate Herodoti}!00868 @868 b-c|hyperindexformat{\nn{33}}}{10}   can somebody advise me on what I am doing wrong here, please? I have tried to use \string after the first sort with no effect.    sure, sorry: this is the file I'm using  \documentclass[12pt,a4paper]{book} \usepackage[utf8x]{inputenx}  \usepackage{palatino}        \usepackage[LGR,T1]{fontenc} \usepackage[english,german,polutonikogreek,italian]{babel}  \usepackage[splitindex]{imakeidx} \makeindex[name=p, title=Passi citati nel testo,columns=1] \newcommand{\nn}[2]{#2 \textit{n}#1} \newcommand{\qt}[1]{\textbf{#1}} \usepackage[hidelinks]{hyperref} \begin{document}  (855A\index[p]{Plutarco!demalignitate@\textit{De Malignitate Herodoti}!00855 @855A|qt})% \footnote{DHM 868 B-C\index[p]{Plutarco!demalignitate@\textit{De Malignitate Herodoti}!00868 @868 b-c|nn{\thefootnote}}} \printindex[p] \end{document}
What happens to Red Skull after Thanos gets the Soul Stone? "If" and "Whether" - Is interrogative IF always replacable by WHETHER? I am asking here specifically about if and whether  when they introduce embedded questions (or to be more technically accurate, subordinate interrogative clauses):  I don't know if Bob's here. I don't know whether Bob's here.  In the sentence above we can freely replace if with whether. There are some situations in which the reverse does not apply. We cannot always replace whether with if. For example in standard English, we cannot normally use if after a preposition:  The question of whether he is actually eligible didn't arise. *The question of if he is actually eligible didn't arise.  We cannot usually use interrogative-if directly followed by or not:  It's unclear whether or not he's a real elephant. *It's unclear if or not he's a real elephant.  There are several more examples. However, what I want to know is:  Are there any examples where we can use interrogative-if but we can't use whether?   Edit note: There is an if that we find in conditionals that can't be replaced by whether. However, this is conditional, not interrogative, if. What are your thoughts on epigraphs in theses? I am wondering if there is a general consensus as to the suitability of epigraphs in a thesis, either a single one at the start of the document, or an appropriate quote to begin every chapter.  For example, at the start of a technical chapter describing some code, I could write     Beware of bugs in the above code; I have only proved it correct, not tried it. - Donald E. Knuth   I am lucky to have complete freedom over how I choose to typeset my thesis (Master's thesis in astronomy) and I like the idea of a thematic quote to begin a chapter. However, I am wary of seeming unprofessional or tacky so I am curious to get some more thoughts on the matter. Area enclosed between the curves $y=x^2$ and $y=60-7x$ How can I add mp3 files as podcasts to my iPhone using iTunes? I am using iTunes 12.5 on Windows 10 with an iPhone 5s.  Sometimes I download hour-long .mp3 files that I want to put onto my iPhone as podcasts, so that it automatically remembers where I am in my listening if I have to stop in the middle.  I know how to transfer .mp3 files to my iPhone, where they show up as Music.  I also know that I can right click on any song, choose 'Get Info' and under Options change the media kind to 'Podcast.'  But when I change the file to a podcast, it disappears from iTunes, though it does show up on my device when I open the Podcasts app.  How can I transfer an .mp3 file to my iPhone as a podcast, and still have that podcast show up in iTunes when I look there to see what podcasts are on my device? Difference Boolean modifier. How do I get it to work with my mesh? I want to make a screw head, but I can't get the cross in the screw head; the Boolean modifier doesn't work.  Link: Symbols instead of numbers as footnote markers How do I integrate the following $$\int \frac{dx}{\sin^3 x + \cos^3 x}$$ ?  It appears that I am supposed to break this up into $(\sin x + \cos x)(1-\cos x \sin x)$, but the next thing to do is not apparent to me. How are "needs to be washed," "needs washing," and the regional variant "needs washed" to be distinguished"? I'm from Central Pennsylvania, and apparently, we have a strange language construct in this area. I was recently talking about how "my car needs washed" to a friend from NJ, and she told me that my sentence was grammatically incorrect.   I realize she's right, and I realize my options are "my car needs to be washed" or "my car needs washing". But I'm not clear on the precise rule being invoked. I asked this question at stackoverflow and have been kindly redirected here.  I'd like to align some equations in Latex using the AMS packages. Each equation has two equal signs that need to be aligned. So something in the line of  A = B = C D = E = F   I've tried using the align-environment like this  \begin{align} A &amp;= B &amp;= C \\ D &amp;= E &amp;= F \end{align}   This works in principle (it aligns), however it adds ridiculously large spaces before the second equal sign in each line. But I just want the line to runs as if there was no additional alignment tab. Only when I replace for example "B" by "BBB" I want the equal sign before "F" to shift to right the exact amount of space.  Could anyone help me out on that one? It's kind of driving me crazy since I don't get the idea of that strange behavior and I just can't find any solution. Maybe alignat could help, but I don't really get how that environment works.  Cheers, Oliver Let $\alpha(t)$ be a regular curve. Suppose there is a point $a$ in $R^3$ such that $\alpha(t)-a$ is orthogonal to $T(t)$ for all t. Prove that $\alpha(t)$ lies on a sphere.  So, I let $\alpha(t)=(x(t), y(t),z(t))$ and $a=(a,b,c)$.  Since, $\alpha(t)-a$ is orthogonal to $T(t)$,  $&lt;\alpha(t)-a,T(t)&gt;=0$.  But I don't know how to solve this.. GET and POST methods with the same Action name in the same Controller Is there a "null coalescing" operator in JavaScript? There are many times when I curse the autocorrection mechanism for changing what I typed, but overall, much of the corrections are welcome so I don't really want to disable it. I do want to have it do it's work but alert me when it makes each change so I don't have to proofread everything or focus with perfect attention to the screen to see the momentary red and/or blue underlining that alerts me to the machine override.  I would love a way to turn on an audible beep (customizable of course) so that I also get a warning each time my typing gets corrected (and only when autocorrection occurs). I have a list with 15 numbers in, and I need to write some code that produces all 32,768 combinations of those numbers.   I've found  (by Googling) that apparently does what I'm looking for, but I found the code fairly opaque and am wary of using it. Plus I have a feeling there must be a more elegant solution.  The only thing that occurs to me would be to just loop through the decimal integers 1–32768 and convert those to binary, and use the binary representation as a filter to pick out the appropriate numbers.   Does anyone know of a better way? Using map(), maybe? How do I bulkify queries for directly or indirectly related records? This is a canonical question and answer developed by the community to help address common questions. If you've been directed here, or your question has been closed as a duplicate, please look through the resources here and use them to shape more specific questions. To browse all canonical questions and answers, navigate to the  tag. This question and answer is owned by the community! If you can improve it and make it more useful, you're welcome to edit it. I have a collection of records, like a List&lt;sObject&gt; or the Trigger.new context variable. I need to query other records that are related to these records either directly or indirectly, and I want to use the related data to make further updates. When I write a query in a loop, like for (Account a : Trigger.new) {     Account parent = [SELECT Name FROM Account WHERE Id = :a.ParentId];     // ... }  I keep hitting Salesforce query limits, and I know this is not best practice. What can I do to avoid this problem and bulkify my code? What hash is concatenating with the data to be signed in TLS 1.3 CertificateVerify message? According to specification, to create data that will be signed with server private key for CertificateVerify message, we need to concatenate 64 space characters, the string &quot;TLS 1.3, server CertificateVerify&quot;, null and the hash of all handshake messages to this point. During the handshake process, we choosing the cipher suite and signature scheme... So, if the cipher suite is, for example, TLS_AES_256_GCM_SHA384 and the signature scheme is rsa_pss_rsae_sha256 (different hash algorithms), hash of which algorithm should be used as handshake hash in data to sign, SHA-384 or SHA-256? I was playing my PS4 two days ago and then packed it up with two controllers that were both connected to this PS4.   I got to where I was going, set everything up and now the controllers won't connect. They show pulsing orange when they plug in, but when I hit the PS Button to connect, it blinks white 1-2 times and goes back to orange.   I have tried resetting them both.  Can anyone help? How can I execute `date` inside of a cron tab job? I want to create a log file for a cron script that has the current hour in the log file name. This is the command I tried to use:  0 * * * * echo hello &gt;&gt; ~/cron-logs/hourly/test`date "+%d"`.log   Unfortunately I get this message when that runs:  /bin/sh: -c: line 0: unexpected EOF while looking for matching ``' /bin/sh: -c: line 1: syntax error: unexpected end of file   I have tried escaping the date part in various ways, but without much luck. Is it possible to make this happen in-line in a crontab file or do I need to create a shell script to do this? On found exact duplicates, should these be voted to close directly against a preferred, or ultimate, canonical question?   Or is a chain of possible duplicates (where one question is closed as duplicate of another, which itself is a duplicate of another, and so on and so on) allowable or OK?  One example of this situation can be found .