Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6818335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:09:57+00:00 2026-05-26T21:09:57+00:00

See the code below: How do I send a parameter BASE_NAME = myfile to

  • 0

See the code below: How do I send a parameter BASE_NAME = myfile to the command line without typing BASE_NAME. I want to enter only

$make pdf myfile

BASE_NAME = myfile

LATEX     = latex
PDFLATEX  = pdflatex
BIBTEX    = bibtex
MAKEINDEX = makeindex
DVIPS     = dvips
PS2PDF    = ps2pdf

pdf: $(BASE_NAME).pdf
ps: $(BASE_NAME).ps

$(BASE_NAME).ps: $(BASE_NAME).tex 
    $(LATEX) $<
    $(BIBTEX) $(BASE_NAME) 
    $(LATEX) $< 
    $(LATEX) $<
    $(DVIPS) -Ppdf $(BASE_NAME)

$(BASE_NAME).pdf: $(BASE_NAME).tex
    $(PDFLATEX) $<

clean:
    rm -f $(BASE_NAME)*.ps $(BASE_NAME)*.dvi *.log \
          *.aux *.blg *.toc \
          missfont.log $(BASE_NAME)*.bbl $(BASE_NAME)*.out \
          $(BASE_NAME)*.lof $(BASE_NAME)*.lot

open:
    acroread $(BASE_NAME).pdf

Also, how do I use an option-type

$make pdf -o myfile

to generate the PDF and then open it from the option -o?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:09:57+00:00Added an answer on May 26, 2026 at 9:09 pm

    This is not a TeX question per se, but nevertheless…

    You are much better if you specifiy generic rules instead of specific ones. Besides, if you want to open your files, Makefile conventions suggest the command make open rather than make -o.

    I usually do it like this

    # The only thing that changes!
    TEXFILES = firstfile.tex secondfile.tex  
    
    PDFS = ${TEXFILES:%.tex=%.pdf}
    
    all: $(PDFS)
    
    open: all
        for x in ${PDFS}; do (xpdf $$x &); done
    
    # You can write a similar rule for ps...
    %.pdf: %.tex  
        pdflatex $*
        -bibtex $*
        pdflatex $*
        - while ( grep -q '^LaTeX Warning: Label(s) may have changed' $*.log || \
        grep -q '^Package natbib Warning: Citation(s) may have changed' $*.log ) \
        do pdflatex $*; done
    
    
    clean:
       $(RM) *.aux *.bbl *.dvi *.log *.out *.toc *.blg *.lof *.lot
    
    distclean: clean
           $(RM) $(PDFS)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See code below, for some reason it only works when I put a breakpoint
Can't seem to figure this out, see code below. Trying to make a GET
I have the code below. I want to send the value of value1 n.value1s
How to send triimed data using $.get() see code snippet below: $(#txtSearch).keyup(function() { $.get(/controller/method/,
Please see code below. The destructors are never called. Anyone know why and how
How come unserialize isn't restoring my array? See code below.. // prints a:1:{s:8:txn_type;s:32:recurring_payment_profile_cancel;} echo
Please see the code below: #include <iostream> #include <stdlib.h> #include <time.h> using namespace std;
I have a table defined (see code snippet below). How can I add a
I am using vb.net code. I have grid view, please see the code below:
I am having a problem using the signedCMS.decode routine. See the code below. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.