Re: reformatting all miniboxes
Premanshu Bhushan wrote: Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% textwidth. Can u also help to understand something like running a script for me in Lyx. Not really. I guess a good starting point would be this: http://wiki.lyx.org/Examples/PLyXSystem Then you'd need to do some Python programming. Regards, Jürgen
Re: reformatting all miniboxes
On 4/01/2014 9:57 p.m., Jürgen Spitzmüller wrote: Premanshu Bhushan wrote: Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% textwidth. Can u also help to understand something like running a script for me in Lyx. Not really. I guess a good starting point would be this: http://wiki.lyx.org/Examples/PLyXSystem Then you'd need to do some Python programming. Regards, Jürgen For something like changing the width of text boxes, the find--replace script of the pLyX system will do the job -- no Python programming needed. The document explaining the use of the find--replace script has an example of changing the width of graphic insets. Andrew --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Re: reformatting all miniboxes
Premanshu Bhushan wrote: Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% textwidth. Can u also help to understand something like running a script for me in Lyx. Not really. I guess a good starting point would be this: http://wiki.lyx.org/Examples/PLyXSystem Then you'd need to do some Python programming. Regards, Jürgen
Re: reformatting all miniboxes
On 4/01/2014 9:57 p.m., Jürgen Spitzmüller wrote: Premanshu Bhushan wrote: Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% textwidth. Can u also help to understand something like running a script for me in Lyx. Not really. I guess a good starting point would be this: http://wiki.lyx.org/Examples/PLyXSystem Then you'd need to do some Python programming. Regards, Jürgen For something like changing the width of text boxes, the find--replace script of the pLyX system will do the job -- no Python programming needed. The document explaining the use of the find--replace script has an example of changing the width of graphic insets. Andrew --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Re: reformatting all miniboxes
Premanshu Bhushan wrote: > Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% > textwidth. Can u also help to understand something like running a script > for me in Lyx. Not really. I guess a good starting point would be this: http://wiki.lyx.org/Examples/PLyXSystem Then you'd need to do some Python programming. Regards, Jürgen
Re: reformatting all miniboxes
On 4/01/2014 9:57 p.m., Jürgen Spitzmüller wrote: Premanshu Bhushan wrote: Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% textwidth. Can u also help to understand something like running a script for me in Lyx. Not really. I guess a good starting point would be this: http://wiki.lyx.org/Examples/PLyXSystem Then you'd need to do some Python programming. Regards, Jürgen For something like changing the width of text boxes, the find-&-replace script of the pLyX system will do the job -- no Python programming needed. The document explaining the use of the find-&-replace script has an example of changing the width of graphic insets. Andrew --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
Re: reformatting all miniboxes
Premanshu Bhushan wrote: I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. The following hack should work if all boxes currently have 100% text width: \renewenvironment{shaded}{% \begin{center}% \begin{minipage}[t]{.8\columnwidth}% \def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolor}}% \MakeFramed {\FrameRestore}% }{% \endMakeFramed \end{minipage}% \end{center}% } Another possibility would be do run a script on the LyX file directly. Regards, Jürgen
Re: reformatting all miniboxes
Jürgen Spitzmüller spitz at lyx.org writes: Premanshu Bhushan wrote: I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. The following hack should work if all boxes currently have 100% text width: \renewenvironment{shaded}{% \begin{center}% \begin{minipage}[t]{.8\columnwidth}% \def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolor}}% \MakeFramed {\FrameRestore}% }{% \endMakeFramed \end{minipage}% \end{center}% } Another possibility would be do run a script on the LyX file directly. Regards, Jürgen Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% textwidth. Can u also help to understand something like running a script for me in Lyx. Thanks. Premanshu Bhushan
Re: reformatting all miniboxes
Premanshu Bhushan wrote: I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. The following hack should work if all boxes currently have 100% text width: \renewenvironment{shaded}{% \begin{center}% \begin{minipage}[t]{.8\columnwidth}% \def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolor}}% \MakeFramed {\FrameRestore}% }{% \endMakeFramed \end{minipage}% \end{center}% } Another possibility would be do run a script on the LyX file directly. Regards, Jürgen
Re: reformatting all miniboxes
Jürgen Spitzmüller spitz at lyx.org writes: Premanshu Bhushan wrote: I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. The following hack should work if all boxes currently have 100% text width: \renewenvironment{shaded}{% \begin{center}% \begin{minipage}[t]{.8\columnwidth}% \def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolor}}% \MakeFramed {\FrameRestore}% }{% \endMakeFramed \end{minipage}% \end{center}% } Another possibility would be do run a script on the LyX file directly. Regards, Jürgen Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% textwidth. Can u also help to understand something like running a script for me in Lyx. Thanks. Premanshu Bhushan
Re: reformatting all miniboxes
Premanshu Bhushan wrote: > I have been writing a book in lyx. I am using a lot of shaded boxes to > highlight information. Is there a way to redesign all of them by redefinig > them in preamble. For example, can i write a code to reduce the width to > 0.8 of text width and make them all centered. otherwise i will have to > manually select all more than 100 boxes and declare its property. it > defeats the purpose of using styles rather than manually formatting. I have > been experimenting with renewcommand and renewenvironment codes but without > much success. The following hack should work if all boxes currently have 100% text width: \renewenvironment{shaded}{% \begin{center}% \begin{minipage}[t]{.8\columnwidth}% \def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolor}}% \MakeFramed {\FrameRestore}% }{% \endMakeFramed \end{minipage}% \end{center}% } Another possibility would be do run a script on the LyX file directly. Regards, Jürgen
Re: reformatting all miniboxes
Jürgen Spitzmüller lyx.org> writes: > > Premanshu Bhushan wrote: > > I have been writing a book in lyx. I am using a lot of shaded boxes to > > highlight information. Is there a way to redesign all of them by redefinig > > them in preamble. For example, can i write a code to reduce the width to > > 0.8 of text width and make them all centered. otherwise i will have to > > manually select all more than 100 boxes and declare its property. it > > defeats the purpose of using styles rather than manually formatting. I have > > been experimenting with renewcommand and renewenvironment codes but without > > much success. > > The following hack should work if all boxes currently have 100% text width: > > \renewenvironment{shaded}{% >\begin{center}% >\begin{minipage}[t]{.8\columnwidth}% >\def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolor}}% > \MakeFramed {\FrameRestore}% > }{% >\endMakeFramed >\end{minipage}% >\end{center}% > } > > Another possibility would be do run a script on the LyX file directly. > > Regards, > Jürgen > Thanks Jürgen Spitzmüller. Your hack does work as all my boxes were 100% textwidth. Can u also help to understand something like running a script for me in Lyx. Thanks. Premanshu Bhushan >
Re: reformatting all miniboxes
On Thu, 2 Jan 2014 05:28:17 + (UTC) Premanshu Bhushan drpreman...@gmail.com wrote: Hi, I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. Sincerely hoping for a reply What I do is I make a style, named after its purpose, exclusively for situations conforming to that purpose, that defines the appearance. If all 100 of your boxes have a single purpose, you need only one style. I have styles for Tip, Note, Warning and Danger. Often they look the same, but I have the option of making them look different by modifying the applicable style. I think what I do is similar to what you're asking. If you're wanting to modify boxes applied directly, that's harder, but probably doable. Unless, of course, in each box, you used specific commands and numbers. HTH SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: reformatting all miniboxes
On Thu, 2 Jan 2014 05:28:17 + (UTC) Premanshu Bhushan drpreman...@gmail.com wrote: Hi, I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. Sincerely hoping for a reply What I do is I make a style, named after its purpose, exclusively for situations conforming to that purpose, that defines the appearance. If all 100 of your boxes have a single purpose, you need only one style. I have styles for Tip, Note, Warning and Danger. Often they look the same, but I have the option of making them look different by modifying the applicable style. I think what I do is similar to what you're asking. If you're wanting to modify boxes applied directly, that's harder, but probably doable. Unless, of course, in each box, you used specific commands and numbers. HTH SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
Re: reformatting all miniboxes
On Thu, 2 Jan 2014 05:28:17 + (UTC) Premanshu Bhushanwrote: > Hi, > I have been writing a book in lyx. I am using a lot of shaded boxes > to highlight information. Is there a way to redesign all of them by > redefinig them in preamble. For example, can i write a code to reduce > the width to 0.8 of text width and make them all centered. otherwise > i will have to manually select all more than 100 boxes and declare > its property. it defeats the purpose of using styles rather than > manually formatting. I have been experimenting with renewcommand and > renewenvironment codes but without much success. > Sincerely hoping for a reply What I do is I make a style, named after its purpose, exclusively for situations conforming to that purpose, that defines the appearance. If all 100 of your boxes have a single purpose, you need only one style. I have styles for Tip, Note, Warning and Danger. Often they look the same, but I have the option of making them look different by modifying the applicable style. I think what I do is similar to what you're asking. If you're wanting to modify boxes applied directly, that's harder, but probably doable. Unless, of course, in each box, you used specific commands and numbers. HTH SteveT Steve Litt* http://www.troubleshooters.com/ Troubleshooting Training * Human Performance
reformatting all miniboxes
Hi, I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. Sincerely hoping for a reply
reformatting all miniboxes
Hi, I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. Sincerely hoping for a reply
reformatting all miniboxes
Hi, I have been writing a book in lyx. I am using a lot of shaded boxes to highlight information. Is there a way to redesign all of them by redefinig them in preamble. For example, can i write a code to reduce the width to 0.8 of text width and make them all centered. otherwise i will have to manually select all more than 100 boxes and declare its property. it defeats the purpose of using styles rather than manually formatting. I have been experimenting with renewcommand and renewenvironment codes but without much success. Sincerely hoping for a reply