Generalcombine macro definitions from 2 packages

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ghostanime2001
Posts: 402
Joined: Fri May 20, 2011 9:41 am

combine macro definitions from 2 packages

Post by ghostanime2001 »

Is it possible to use specific macro definitions from a package in the preamble instead of using the whole package? The reason I say that because suppose two packages conflict each other, so can I use specific macro definitions from one package and another specific macro from the second package in a single document ?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: combine macro definitions from 2 packages

Post by Johannes_B »

You could just copy the code/macro you need from the stylefile. Remember to write where you took the code from.
But be carfeful with this approach, this could be very annoying.

Can you tell us, which packages/macros conflict in your case? Maybe there is a simple fix.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply