[oXygen-user] How to manage citations?
Bernhard Kleine
bernhard.kleine at gmx.net
Tue Oct 17 10:40:02 CDT 2017
Alex, thanks a lot.
Two further questions:
1. Is it possible to assign a keyboard shortcut to "Citation"?
2. I destinguish citation running with the text (role="text") and
others? how could that be included?
Kind regards
Bernhard
Am 17.10.2017 um 14:30 schrieb Alex Jitianu:
>
> Hello,
>
> In Oxygen you can create different types of actions [1] that can alter
> the document in different ways (inserting fragments, changing
> attributes etc). For this particular situation I would recommend an
> XSLT action that will use a bit of Java reflection to get input from
> the user (the *Gei04* ID).
>
> Unzip the attached framework (it is an extension of the built-in
> Docbook5 framework) into {OxygenInstallDir}/frameworks (please make
> sure you don't create any additional directory structure). Restart
> Oxygen and open a Docbook5 file. On the toolbar, there is a *Citation*
> action.
>
> The script behind the action is found inside
> docbook5-ext/actions/insertBiblioref.xsl :
>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns="http://docbook.org/ns/docbook"
> xmlns:jop="java:javax.swing.JOptionPane"
> xmlns:prov="ro.sync.exml.workspace.api.PluginWorkspaceProvider"
> xmlns:pw="ro.sync.exml.workspace.api.PluginWorkspace"
> exclude-result-prefixes="#all"
> version="2.0">
> <xsl:template match="*">
>
> <!-- Java reflection to get input from the user. We intend to
> make it easier than this in a next version. -->
>
> <xsl:variable name="target"
> select="jop:showInputDialog(pw:getParentFrame(prov:getPluginWorkspace()),
> 'Input target:', '')"/>
>
> <citation><biblioref linkend="{$target}"/></citation>
> </xsl:template>
> </xsl:stylesheet>
>
>
> [1]
> https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/the-action-dialog.html
>
> Best regards,
> Alex
> --
> Alex Jitianu
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
> On 10/17/2017 12:06 PM, Bernhard Kleine wrote:
>>
>> You are right. But it is still a lot of typing. Has there been any
>> effort to develop a macro language for Oxygen?
>>
>> Nice day, Bernhard
>>
>>
>> Am 17.10.2017 um 10:52 schrieb Franz-Josef Knelangen:
>>>
>>> No macro needed. In Author mode, you type:
>>>
>>>
>>>
>>> Enter
>>>
>>> citation*
>>>
>>> Enter
>>>
>>> biblioref*
>>>
>>> Alt+Enter
>>>
>>> linkend*
>>>
>>> Gei04
>>>
>>>
>>>
>>> * You only have to type 1 or 2 characters and Enter afterwards. Easy.
>>>
>>>
>>>
>>> Cheers,
>>>
>>> Franz-Josef
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> *AKG Software Consulting GmbH
>>> Franz-Josef Knelangen*
>>>
>>>
>>> Uhlandstraße 12
>>> 79423 Heitersheim
>>> Germany
>>>
>>> Tel.: +49 (0)7634 5612-611
>>> Fax: +49 (0)7634 5612-300
>>> E-Mail: _fjk at akgsoftware.de_
>>> Internet: www.akgsoftware.de <http://www.akgsoftware.de>
>>>
>>> Geschäftsführer: Dipl.-Ing. Artur K. Günther, Dipl.-Ing. Arno
>>> Brüggemann, Dipl.-Ing. (FH) Bernhard Feser, Dipl.-Ing. Jens Günther
>>> Sitz der Gesellschaft: Heitersheim, HRB 310383 (Amtsgericht Freiburg)
>>>
>>> *Von:*oXygen-user [mailto:oxygen-user-bounces at oxygenxml.com] *Im
>>> Auftrag von *Bernhard Kleine
>>> *Gesendet:* Dienstag, 17. Oktober 2017 10:18
>>> *An:* oxygen-user at oxygenxml.com
>>> *Betreff:* [oXygen-user] How to manage citations?
>>>
>>>
>>>
>>> When entering a citation key e.g. Gei04 in author mode, I have to type
>>>
>>> 1. Gei04
>>> 2. Shift-left (to mark the entry)
>>> 3. Ctrl-E biblioref
>>> 4. Ctrl-X
>>> 5. Alt-Enter
>>> 6. l (letter L for linkend)
>>> 7. Enter
>>> 8. Ctrl-V
>>> 9. Shift-left
>>> 10. Ctrl-E citation
>>>
>>> Is there a other way which would not involve so many different steps
>>> like a macro?
>>>
>>> Regards
>>>
>>> Bernhard
>>>
>>> --
>>> spitzhalde9
>>> D-79853 lenzkirch
>>> bernhard.kleine at gmx.net <mailto:bernhard.kleine at gmx.net>
>>> www.b-kleine.com <http://www.b-kleine.com>, www.urseetal.net <http://www.urseetal.net>
>>> -
>>> thunderbird mit enigmail
>>> GPG schlüssel: D5257409
>>> fingerprint:
>>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>>
>> --
>> spitzhalde9
>> D-79853 lenzkirch
>> bernhard.kleine at gmx.net
>> www.b-kleine.com, www.urseetal.net
>> -
>> thunderbird mit enigmail
>> GPG schlüssel: D5257409
>> fingerprint:
>> 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
>>
>>
>> _______________________________________________
>> oXygen-user mailing list
>> oXygen-user at oxygenxml.com
>> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
>
>
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user at oxygenxml.com
> https://www.oxygenxml.com/mailman/listinfo/oxygen-user
--
spitzhalde9
D-79853 lenzkirch
bernhard.kleine at gmx.net
www.b-kleine.com, www.urseetal.net
-
thunderbird mit enigmail
GPG schlüssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20171017/af7db156/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20171017/af7db156/attachment.sig>
More information about the oXygen-user
mailing list