SOLVED: lyx numbering equations by section

i can not get numbering my equations by sections to work.  i added this
\numberwithin{equation}{section}
to the Document->Settings-> Latex preamble.  when i try to view the documents using dvi i get the following message
Undefined control sequence.
Latex Error: Missing \begin{document}
here is a copy of my /home/user_name_here/.lyx/templates/defaults.lyx
#LyX 1.5.2 created this file. For more info see http://www.lyx.org/
\lyxformat 276
\begin_document
\begin_header
\textclass article
\begin_preamble
\numberwithin{equation}{section}
\end_preamble
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family sfdefault
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\spacing single
\papersize a4paper
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Standard
\end_layout
\end_body
\end_document
any ideas?
EDIT: found the answer to my question i needed to change Document->Settings->Math options
from "Use AMS math package automatically"  change that to "Use AMS math package"
Last edited by delacruz (2008-07-04 00:26:50)

My commands are kind of kludgy (they make the indenting a little weird), but I think they should work
First, we redefine the command used for numbering sections to "hspace*{-18pt} (ie: just display the title 18pts left of where it should  be). This may need to be adjusted depending on font size/ etc.
Next, we redefine the command used for numbering subsections to display the subsection number as an arabic numeral.
\renewcommand{\thesection}{\hspace*{-18pt}}
\renewcommand{thesubsection}{\indent\arabic{subsection}}
Just for reference, I believe the default behaviour is
\renewcommand{\thesection}{\arabic{section}}
\renewcommand{\thesubsection}{\arabic{section}.\arabic{subsection}
EDIT:
These commands should be placed in the preamble, although I think they work in document.
Also,
\renewcommand{\thesection}{\hspace*{-1.0em}}
\renewcommand{thesubsection}{\indent\arabic{subsection}}
may work better, depending on the font/ fontsize you use. (1.0em is roughly the width of an 'M' in the current font.)
Last edited by leocp1 (2012-01-16 17:55:30)

Similar Messages

  • CSM does not show rule numbers when using sections?

    I started using sections in access rules within CSM 4.2 but all the rules that are within these section do not show anymore the rule number in the list.
    Can this be changed? Is this a bug?

    The numbers are shown, but you have to expand the column. Somehow cisco makes the no. column to small to see the numbers in a section by default. And they replace the numbers with a dot or two as soon as it is too small to display the numbers.

  • Solving the Complex Equations

    Any one help  me how to Solve the complex equation like this.. I was little confused bcoz imaginary part (j) is available..All  variables are known except j...
    Thanks & regards
    Rigil

    When you say "solve" do you mean, evaluate numerically or are you looking for an analytic solution?
    The numerical solution should be a straightforward translation of the equation to LV functions.  LV has  a complex data type which (a + ib) and most mathematical functions will accept it.
    LV is not really set up to do analytical solutions.
    Lynn

  • How to solve a complicated Equation in Numbers?

    I have to calculate the solutions of a complicated equation in Numbers. I have tried to find functions that finds the zeros of a expression, or thought of setting up while loops that runs until the error term is almost 0, but I cannot find any such thing. Can anyone help me figure out how I can set this up in Numbers? This is something that can easily be done with a graphing calculator such as TI-83, but I have many inputs that can vary in my spreadsheet.
    Thanks.

    There is no such a feature in Numbers.
    _Go to "Provide Numbers Feedback" in the "Numbers" menu_, describe what you wish.
    Then, cross your fingers, and wait _at least_ for iWork'10
    Yvan KOENIG (from FRANCE dimanche 1 mars 2009 16:10:52)

  • Book numbering properties window – Section and Sub-section grayed out

    In FM 12, I have a book composed of one front-matter file and 9 chapter files. The chapters (1-9) auto-numbered without any problems and pagination is correct. I want to add section and subsection numbers. Within each file I added autonumber format tags to the headers used specifically for section and subsection titles on the first chapter page and autonumber format tags within the body of the chapters. The autonumber tags are –
    <$chapnum>.<$sectionnum>\t
    <$chapnum>.<$sectionnum>.<$subsectionnum>\t
    for paragraph tags Heading 2 and Heading 3, respectfully.
    When I select numbering in the book file window and click on either the Section and Sub-section tab, the windows are grayed out. I know I'm missing something obvious. I've gone through help files, manuals and tutorials for hours and can't find what I need. Any advice about where I can look to sort this out?
    Thank you.

    Almost, but not quite. FM books (now) have the ability to specify internal Folders and Groups. You can then assign (i.e. move) the relevant FM files into these structures to create more of a hierarchical structure in the book - see: Adobe FrameMaker 12 * About books and also see: Numbering in Hierarchical Books « TechComm Central by Adobe
    Once the file is assigned to a folder or sub-folder, then the section and subsection numbering properties become available for that file.

  • Continue page numbering from Main Section to Trailer Section

    Hello,
    I am trying to create a report which has multiple report blocks in the Main section. The page orientation is portrait for Main section. Now, I want to add a report block which should have a landscape orientation. So, I created this in the Trailer section. All that works out well.
    My next task is to add a Table of Contents as the first page of the output (pdf). This is clearly documented in the Building Reports 10g manual and works just fine for the Main section. i.e. the TOC comes out with correct page numbers. But, for the Trailer section, the page number retrieved by SRW.GET_PAGE_NUM shows a page number of 1 , since it's the first page in the Trailer.
    What I want is that the Trailer's page number should continue where the Main section left off. In fact, If I put a field in the margin for the trailer and source it from "Page Number" in the property pallet, I can see that it has the correct page number, i.e. it's main sections page number + 1. But, SRW.GET_PAGE_NUM seems to retrieve 1.
    Note that at the Report Module level, I have set the Format Order of Sections property to Main-Trailer-Header.
    Any inputs are much appreciated.
    Thanks,
    Manish

    That worked perfectly after I discovered I also needed to uncheck "use previous footnote". I also checked "First page is different" since it is a Section Title Page and did not need a page number. Now, all that is needed is the availability of different types/styles of numbering (Roman numeral for introductory pages as an example).
    What is happening is that I am self publishing a genealogical book on my family tree that also carries quite a lot of other family information and each of the "Sections" was built in Pages since I did not know how to correctly do sectioning to use a single Page document. There are eight SECTIONS, not pages, with a total 278 duplex (2 sided) pages.
    Thanks Yvan for helping clarify the sectioning.
    Sparkgapper

  • Solving yule-walker equations

    Hello
    I want to estimate the parameters of an AutoRegressive model order p=5, and from netsearches I understand this entails
    1) estimating the autocorrelationfunction up to and including lag 5
    2) creating a correlationmatrix R from these, where r_ij = r_ji
    3) solving the system R dot a = b
    where a is unknown coefficients (the parameters), and b is r_1 - r_p.
    I have substracted the mean from my series.
    I compare my results from that of R (similar to Splus).
    My estimations are perfect for the correlations, but my solution to the system is not. I use the method "gssitisol" from "A numerical library in Java for scientists and engineers", which supposedly should solve these kind of linear systems.
    Is my System equation correct? Any other ideas on how to solve this?
    Regards
    JT

    There is not to much to go on. I don't know what this "gssitisol" method is, and I also don't know if you wrote an implementation of it yourself from pseudo code or not...
    But from my (very) limited knowledge of AR modelling (a topic in a class of 3 moths) I read that the Yule-Walker method can lead to poor estimates. The Burg�s method is preferred (at least in this article):
    http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/publications/Annals.pdf
    But I'm still a novice around here. I'm sure that if you're a bit more specific, and perhaps supply some code, there will surely be someone with far more math-skills here who can help you out.
    Hope it helped.
    Good luck.

  • [SOLVED] LyX cannot find layout/document classes

    LyX refuses to produce any output for me because it cannot find article.layout, or any other common layout. This file is installed in /usr/share/lyx/layouts/article.layout.
    I have installed texlive-most and texlive-bin. I have installed dvips and the other programs necessary to render files.
    I have tried clearing my LyX config several times (rm -rf ~/.lyx) and it hasn't helped. I have removed and reinstalled texlive with various options, including -Rn and -Rc, multiple times. I have also manually removed leftover files from both LyX and texlive. I have told LyX to reconfigure itself several times.
    No output will be produced. I thought maybe this was caused by some stray old config file floating somewhere out there but heretofore have not been able to find it or remove it via -Rn. Someone told me that a fresh install of LyX works.
    Any help would be deeply appreciated.
    EDIT: I have also tried updating my PATH to include /opt/texlive/bin as suggested somewhere else on these boards and then running and reconfiguring LyX. It doesn't help.
    Last edited by cookiecaper (2010-08-17 17:49:20)

    Ugh, just solved it. Hopefully this helps someone. I hadn't removed ~/.texlive. Removing that and restarting LyX fixed it.

  • Continue footnote numbering in new section

    Hi,
    I'm working on a book. I have set it up such that each chapter begins a new section and a new InDesign story. Editor requires that the footnote numbering be consecutive throughout the book. I.e, if Chapter 3 (=section 3) ends with footnote 43, Chapter 4 (=section 4) must begin with footnote 44.
    Can this be done? Have I overlooked anything?
    Thanks,
    Ariel

    Thanks both.
    Re. threading everything together:  I broke everything up initially because I find the new Smart Text Reflow feature fairly useful to add pages at the end of a story. Obviously if it's all one long story you can't use that anymore.
    But there is a bigger problem with having everything one long story: Chapter openings get their own master page assigned (no running heads, etc.) If everything is one long story and something happens to cause page reflow, the master pages all go out of kilter. There's stupidly no way of linking a master page to a particular paragraph style. (Actually, I believe Harbs sells a script to deal with that.) And I suppose I could write a script myself.
    Still, usually this isn't necessary, because I simply break each chapter up into its own story, and with the Text Reflow feature this works pretty well. This is actually the first time I've ever had consecutive footnotes throughout a book (an editorial mistake, IMHO).
    Thanks,
    Ariel

  • Coutinue the page numbers even after section brake

    Hi,
    In my report i am using section brake between 2 tables to start second table rows from next page.
    i need to continue the page numbers from table 1 to till the end of second table.

    Friend where I can find in the BI PUBLISHER the option to edit this code where I put it?

  • [SOLVED] Lyx viewer not working

    Hey guys,
    I've just installed arch for the first time - great feeling However, I'm having a little trouble with LyX (dunno if there's any experts out there to help me with that but here goes). In Linux Mint I didn't have any trouble whatsoever but after installing in Arch, the "View" button (ctrl+r) is greyed out. I can export to PDF and it dumps a nice pdf in the same folder that I'm standing in but I can't seem to get the view button to un-grey. I've tried poking around in Tools -> Preferences -> {Output, File Handling} but I can't seem to get it to do anything.
    Anyone have a guess?
    Cheers
    Last edited by superpronker (2012-08-20 15:04:25)

    same problem here but installing gnome-extra wanted to pull >300 MiB
    I installed evince instead which only pulled < 20 MiB
    One of those 10 files should be the culprit
    [root@myhost hmeyer]# pacman -S evince
    Löse Abhängigkeiten auf...
    Suche nach Zwischenkonflikten...
    Pakete (10): djvulibre-3.5.25.3-1  gnome-icon-theme-3.8.2-1
                 gnome-icon-theme-symbolic-3.8.2.2-1  gsfonts-1.0.7pre44-3
                 icon-naming-utils-0.8.90-2  libgxps-0.2.2-3  libsecret-0.15-1
                 libspectre-0.2.7-1  perl-xml-simple-2.20-1  evince-3.8.2-1
    Gesamtgröße des Downloads:                 18,94 MiB

  • [SOLVED] Lyx Not Starting Up: boost regex error

    I've just installed Lyx from official repositories but It's not starting up.
    If i run it from terminal:
    [#######@archTiD ~]$ lyx
    lyx: error while loading shared libraries: libboost_regex.so.1.55.0: cannot open shared object file: No such file or directory
    What did I do wrong?
    Thanks in advance.
    Last edited by Tid91 (2013-12-08 16:38:30)

    loafer wrote:
    pacman -Qo /usr/lib/libboost_regex.so.1.55.0
    /usr/lib/libboost_regex.so.1.55.0 is owned by boost-libs 1.55.0-2
    Is the file present?  You could try reinstalling boost-libs.
    Is present just the 1.54 version of that file.
    If I do:
    sudo pacman -S boost-libs
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: boost: requires boost-libs=1.54.0

  • [SOLVED]Perform pageflow from executables section of a pagedef

    Hi
    I am trying to call a API in the executables section of adf page definition, based on the result of the API i want to render the UI components in the page or forward the page flow to another page.
    I have achieved the first part, but I'm not able to perform a page forward.
    I have tried creating a data control for the ADF page's Backing bean and invoke a custom method from it (the method is called 2 times for some strange reason :( ) but the approach is not successful.
    Is a page forward from executable section possible ?
    pls. provide any pointers to samples or documentations.
    Thanks in advance.
    Pradeep
    Message was edited by:
    pradeep

    Thanks John and Frank for your replies.
    I have figured out (Sort of ) a way to do pageflow from executables section.
    --> Added a custom method handlePageFlow() in the backing bean of the page.
    --> created a data control of the backingbean
    --> dragged the method action handlePageFlow() to the bindings section in pagedef
    -->created an excutable from this binding
    In the handlePageFlow() method i am using NavigationHandler Class
    public void handleNavigation(FacesContext context, String fromAction,
    String outcome) method to forward depending on the evaluated condition.
    Pradeep

  • Solving a complicated equation

    Hi, I have a problem. The equations goes like this,
    Yn=TAN(x*T/2)-S/(x*D) where T, D, and S are user inputs. and n indicate nth root.
    Then, 
    delta = an equation that involves the summation of Yn
    For now, I can make the user to input the Value of S to get delta. However, I need to make the program able to calculate S when the user know the value of delta. Do anyone any suggestion?
    Thank you in advance

    An equation that fits on a single line is not complicated.
    Are the values real or complex?
    If you have a VI that calculates delta(S), and the function is well behaved, you could use Newton-Raphson to calculate S(delta).
    LabVIEW Champion . Do more with less code and in less time .

  • Solving a "simple" equation

    Hello all,
    Am trying to get multiple email address from a repeating table and I read from a blog
    here on an equation to do so but I can not seem to get to work. Was wondering if anybody knew what I am doing wrong? Here is my equation:
    eval(eval(Person,' concat(AccountId,"|")'),"..")

    An equation that fits on a single line is not complicated.
    Are the values real or complex?
    If you have a VI that calculates delta(S), and the function is well behaved, you could use Newton-Raphson to calculate S(delta).
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Proxy problems with portal

    Hi everybody, we are running EP60 sp13; when we get to the portal via IIS (SSO), after a short period of work, the Portal doesn't work anymore. We are always redirected to the home page (sometimes a blank page). Everything returns all right when rebo

  • My camera does not work? On my new ipad3 any come across this?

    It starts to take them and freezes

  • Calculate Opening and Closing Stock

    Hi all,       Plz tell me logic how to calculate Opening Stock and Closing Stock of material of any particular date of month........... Thanks in Advance. Pradip Pawar

  • How do I use GPS and Maps on my new Nokia N95?

    Hi everyone. Apologies if my questions seem very stupid I have read my manuals but don't understand how to use the GPS or to use maps. (FYI - I live in Australia). -When I go to the menu, and click onto Maps, it loads up a picture of the world but no

  • How to access id property

    I have created my own class NoCacheService in AS-3 that extends httpService. It works fine. I invoke in a .mxml file via: <utils:NoCacheService id="xyz" url="/url/here" resultFormat="e4x" result="resultHandler(event)" fault="faultHandler(event)" /> N