LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2022, 07:38 PM   #1
Faki
Member
 
Registered: Oct 2021
Posts: 574

Rep: Reputation: Disabled
Customary rules on latex style files and their use in documents


Am struggling to understanding where and when to call packages. I have a style file `galex.sty` that needs the `xcolor` package. In the document `article.ltx` I also need to use `xcolor`.

I do as follows for `galex.sty`

Code:
    % galex.el
    \RequirePackage[dvipsnames*,svgnames,x11names]{xcolor}
    \definecolors{Lavender}
     
    % More code here
Here is my document `article.ltx`

Code:
    % article.ltx
    \documentclass[b5paper,12pt]{article}
    \usepackage[body={13cm,18cm}]{geometry}
    \usepackage{galex}
    
    % More code here
Does the `xcolor` package bleed through for use in `article.ltx` from the style file `galex.sty`?

What are the customary rules on style files and how they are to be used with documents.

Last edited by Faki; 09-22-2022 at 07:40 PM. Reason: Introduced code sections
 
Old 09-22-2022, 08:20 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Faki View Post
Am struggling to understanding where and when to call packages. I have a style file `galex.sty` that needs the `xcolor` package. In the document `article.ltx` I also need to use `xcolor`.

I do as follows for `galex.sty`

Code:
    % galex.el
    \RequirePackage[dvipsnames*,svgnames,x11names]{xcolor}
    \definecolors{Lavender}
     
    % More code here
Here is my document `article.ltx`

Code:
    % article.ltx
    \documentclass[b5paper,12pt]{article}
    \usepackage[body={13cm,18cm}]{geometry}
    \usepackage{galex}
    
    % More code here
Does the `xcolor` package bleed through for use in `article.ltx` from the style file `galex.sty`?

What are the customary rules on style files and how they are to be used with documents.
Check your other thread about latex:
https://www.linuxquestions.org/quest...9/#post6381886
 
Old 09-22-2022, 09:01 PM   #3
Faki
Member
 
Registered: Oct 2021
Posts: 574

Original Poster
Rep: Reputation: Disabled
The documentation is amazingly extensive and numerous to figure where I have to look exactly.
 
Old 09-23-2022, 08:25 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Faki View Post
The documentation is amazingly extensive and numerous to figure where I have to look exactly.
Right; so why do you expect us to read it for you, and tell you where to look so you can solve your problem??
 
Old 09-24-2022, 06:57 AM   #5
Faki
Member
 
Registered: Oct 2021
Posts: 574

Original Poster
Rep: Reputation: Disabled
I ask the question for those more knowledgeable about its contents. I do not see anything untoward to ask.
 
Old 09-24-2022, 11:48 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Faki View Post
I ask the question for those more knowledgeable about its contents. I do not see anything untoward to ask.
Sorry, no. We are happy to HELP with things, but your question is (essentially), "I want to do something with latex, but don't really want to read the documentation. Can someone tell me exactly how to do this?"

Did you try putting "how to use latex style files" into a search engine, and look at what you find?? Again, we are happy to help if you're stuck, but you haven't seemed to have done any research of your own. There are no 'customary' rules when it comes to writing something up, other than the technical aspects which are in the documentation.
 
  


Reply

Tags
latex



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Use Emacs Org mode to easily create LaTeX documents LXer Syndicated Linux News 0 04-09-2020 09:11 PM
[SOLVED] /etc/udev/rules.d/40-libsane.rules and /etc/udev/rules.d/S99-2000S1.rules missing LABEL=libsane_rules_end mumahendras3 Slackware 6 03-09-2020 02:27 AM
[SOLVED] Running a customary shell script from within the GNU autotools process as part of install. dsl_ Programming 7 07-10-2018 01:45 AM
auditctl -l not showing any rules even though i have rules written in audit.rules alphaguy Linux - Security 1 02-07-2014 05:28 PM
Installing new/original latex style files tylerrp Linux - Software 4 03-01-2007 03:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration