[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lyx-users
Subject:    implement nested commands in *.layout or *.modul
From:       "go2tobias () gmx ! de" <go2tobias () gmx ! de>
Date:       2010-10-27 19:43:12
Message-ID: 4CC880D0.408 () gmx ! de
[Download RAW message or body]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-15">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hello, <br>
    (I'm german, sorry for my bad english)<br>
    I asked my question to the developers but maybe you are the right
    address. So can you help me with the following? <br>
    <br>
    I tryed to use *.modul method. I want to use Lyx nesting, but I have
    to implement a COMMAND, not an environment. <br>
    There was another question: <a class="moz-txt-link-freetext"
      href="http://www.lyx.org/trac/ticket/6854">http://www.lyx.org/trac/ticket/6854</a> 
    but it did'nt helped me. <br>
    <br>
    <ol>
      <li>Can I use nesting in a COMMAND? </li>
      <li>How?</li>
      <li>if not, can I make a command  usable as environment?</li>
      <li>other work around?</li>
    </ol>
    <br>
    If you want, answer in german :-)<br>
    <br>
    following just the minimum example<br>
    <br>
    OK, here is my example (child{} has to be nested):<br>
    I want to do this in Lyx:<br>
    <br>
    <span style="color: rgb(128, 0, 0); font-weight: normal;">\<a
        target="_blank"
        href="http://www.golatex.de/wiki/index.php?title=%5Cdocumentclass"><span
          style="color: rgb(128, 0, 0);">documentclass</span></a></span><span
      style="color: rgb(224, 32, 32);">[</span><span style="color:
      rgb(192, 128, 32); font-weight: normal;">a4paper</span><span
      style="color: rgb(224, 32, 32);">]{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;">scrartcl</span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <span style="color: rgb(128, 0, 0); font-weight: normal;">\<a
        target="_blank"
        href="http://www.golatex.de/wiki/index.php?title=%5Cusepackage"><span
          style="color: rgb(128, 0, 0);">usepackage</span></a></span><span
      style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;">tikz</span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <br>
    <span style="color: rgb(192, 0, 0); font-weight: normal;">\<a
        target="_blank"
        href="http://www.golatex.de/wiki/index.php?title=%5Cbegin"><span
          style="color: rgb(128, 0, 0);">begin</span></a></span><span
      style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;"><span style="color: rgb(0,
        0, 208); font-weight: normal;">document</span></span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <br>
    <span style="color: rgb(192, 0, 0); font-weight: normal;">\<a
        target="_blank"
        href="http://www.golatex.de/wiki/index.php?title=%5Cbegin"><span
          style="color: rgb(128, 0, 0);">begin</span></a></span><span
      style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;"><span style="color: rgb(0,
        0, 208); font-weight: normal;">tikzpicture</span></span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <br>
    <span style="color: rgb(128, 0, 0); font-weight: normal;">\node</span>
    <span style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;">Oberster Punkt</span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
      child <span style="color: rgb(224, 32, 32);">{</span><span
      style="color: rgb(32, 32, 192); font-weight: normal;">node {links</span><span
      style="color: rgb(224, 32, 32);">}}</span> <br>
      child <span style="color: rgb(224, 32, 32);">{</span><span
      style="color: rgb(32, 32, 192); font-weight: normal;">node {rechts</span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
         child <span style="color: rgb(224, 32, 32);">{</span><span
      style="color: rgb(32, 32, 192); font-weight: normal;">node
      {unterpunkt</span><span style="color: rgb(224, 32, 32);">}}</span>
    <br>
      <span style="color: rgb(224, 32, 32);">}</span>   <br>
    ;<span style="color: rgb(192, 0, 0); font-weight: normal;">\<a
        target="_blank"
        href="http://www.golatex.de/wiki/index.php?title=%5Cend"><span
          style="color: rgb(128, 0, 0);">end</span></a></span><span
      style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;"><span style="color: rgb(0,
        0, 208); font-weight: normal;">tikzpicture</span></span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <br>
    <span style="color: rgb(192, 0, 0); font-weight: normal;">\<a
        target="_blank"
        href="http://www.golatex.de/wiki/index.php?title=%5Cend"><span
          style="color: rgb(128, 0, 0);">end</span></a></span><span
      style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;"><span style="color: rgb(0,
        0, 208); font-weight: normal;">document</span></span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <br>
    My first step was to do this:<br>
    <span style="color: rgb(128, 0, 0); font-weight: normal;">\<a
        target="_blank"
        href="http://www.golatex.de/wiki/index.php?title=%5Cnewenvironment"><span
          style="color: rgb(128, 0, 0);">newenvironment</span></a></span><span
      style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;">tikzpictureNew</span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <span style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;"><span style="color:
        rgb(192, 0, 0); font-weight: normal;">\<a target="_blank"
          href="http://www.golatex.de/wiki/index.php?title=%5Cbegin"><span
            style="color: rgb(128, 0, 0);">begin</span></a></span><span
        style="color: rgb(224, 32, 32);">{</span><span style="color:
        rgb(0, 0, 208); font-weight: normal;">tikzpicture</span></span><span
      style="color: rgb(224, 32, 32);">}}</span> <br>
    <span style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;"> ; <span style="color:
        rgb(192, 0, 0); font-weight: normal;">\<a target="_blank"
          href="http://www.golatex.de/wiki/index.php?title=%5Cend"><span
            style="color: rgb(128, 0, 0);">end</span></a></span><span
        style="color: rgb(224, 32, 32);">{</span><span style="color:
        rgb(0, 0, 208); font-weight: normal;">tikzpicture</span></span><span
      style="color: rgb(224, 32, 32);">}}</span>    <span style="color:
      rgb(44, 146, 44); font-style: italic;">%  " ; " Semicolon!</span>
    <br>
    It works, so I can use environment with the needed semicolon <br>
    <br>
    But I can not do this:<br>
    <span style="color: rgb(128, 0, 0); font-weight: normal;">\<a
        target="_blank"
        href="http://www.golatex.de/wiki/index.php?title=%5Cnewenvironment"><span
          style="color: rgb(128, 0, 0);">newenvironment</span></a></span><span
      style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;">childNEW</span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <span style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;"> child{   </span><span
      style="color: rgb(224, 32, 32);">}</span> <br>
    <span style="color: rgb(224, 32, 32);">{</span><span style="color:
      rgb(32, 32, 192); font-weight: normal;">       </span><span
      style="color: rgb(224, 32, 32);">}</span>  <span style="color:
      rgb(224, 32, 32);">}</span> <span style="color: rgb(44, 146, 44);
      font-style: italic;"></span><br>
    to use environment and after that to use nesting in lyx :-)<br>
    I think - one step to have it. <br>
    Can anyone help me out?<br>
    <br>
  </body>
</html>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic