-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\cite: expose optional parameter #183
Comments
We should also consider moving |
To follow up from today's conversation and #198 Going back to the example
Since we may have nested xref's in the optional parameter, we need to move the optional parameter outside the xref. This reminded me of #56 and the "temporary" cite-group element. Perhaps
(I don't care too much if the [ ] are inside or outside.) |
@pkra How about this?
I'd prefer to stick with See #201 |
Thanks, David. I like cite-group but the code example above wouldn't (naturally) help with the problem downstream - handling the optional parameter. I tend to prefer the optional parameter to be part of the link (in particular to increase link target size) but I could move it into the link downstream -- I'd just really like a wrapper to identify it. |
@pkra I'm confused. Above you wrote
with the optional text outside of the |
I was trying 😄 My example was a single citation, your example was multiple ones grouped together. Let me use your example and combine the two. With a wrapper on the outside: <cite-group>
<x>[</x>
<cite><xref ref-type="bibr" rid="bibr-AEG0" specific-use="cite">AEG08</xref><x>, </x>Section 5</cite><x>; </x>
<cite><xref ref-type="bibr" rid="bibr-AEG0" specific-use="cite">AEG08</xref><x>, </x>theorem 4</cite>
<x>]</x>
</cite-group> With a wrapper on the inside: <cite-group>
<x>[</x>
<xref ref-type="bibr" rid="bibr-AEG0" specific-use="cite">AEG08<cite-detail><x>, </x>Section 5</cite-detail></xref><x>; </x>
<xref ref-type="bibr" rid="bibr-AEG0" specific-use="cite">AEG08<cite-detail><x>, </x>theorem 4</cite-detail></xref><x>]</x>
</cite-group> Both have their advantages and drawbacks downstream so I'm not perfectly sure which I'd prefer. I started with the first option in mind but the second one is growing on me. [EDIT: fixed second example] |
@pkra Thanks for the clarification. Let me know what you think about the new revision. |
Implemented following markup:
|
@davidmjones is the following statement correct: |
Yes. And I've made a note in the source code that this is the expected behaviour downstream. |
Thanks, David. |
Right now something like
\cite[Lemma 4.1]{Noz08}
is turned into
<x>[</x><xref ref-type="bibr" rid="bibr-Noz08" specific-use="cite">7<x>, </x>Lemma 4.1</xref><x>]</x>
This makes it difficult to specifically process/style the optional part
Lemma 4.1
downstream.Since PDF output separates these (e.g., the optional part is not part of the link), could texml add some kind of structure in its output?
The text was updated successfully, but these errors were encountered: